On 01.07.2007 17:40, Jan Steuer wrote: > Hello, > I'm going to make my own simple GUI for CS (CE GUI isn't sufficient for > me). I want to have transparent overlapping widgets. > But I haven't found any tutorial how to write 2D applications in CS. I > went through the reference but I didn't find answers for some questions. > > I want to have a buffer for every widget containing its contents which > can be changed. When the widget is asked, it will copy the buffer to the > screen canvas. And moreover widgets can be transparent. > Could somebody tell me how to do it?
One approach could be to use render-to-texture for widgets - render one or multiple widgets to a texture (your "buffer") and render this texture to the screen once needed. To deal with transparency in that case I recommend you read a bit about premultiplied alpha. -f.r.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
