PDA

View Full Version : How to set the background color?



Michael Hartlef
22-08-2007, 21:40
How can I set the background color in TBGL between ClearFRame and DrawFrame?


tbgl_ClearFrame
' Render objects
tbgl_DrawFrame

Michael Hartlef
22-08-2007, 22:09
Ok, found it myself.... TBGL_BACKCOLOR is the answer. :)

Petr Schreiber
22-08-2007, 23:24
Yes,

it is :) It allows even alpha as optional parameter.
This is important in blending sometimes.

I apologize for late reply, birth of next TBGL is taking some my brain/time resources :)
It will contain even more optimized parsing of TBGL_BackColor and other older commands, I do complete facelift of source too.

Just one thing - as TBGL/OpenGL works as state automat, it is enough to specify back color once before main loop.


Bye,
Petr

Michael Hartlef
23-08-2007, 06:27
Thanks for the hint Petr. And don't be sorry for late reply. We all have a life, I understand completely.