Feature suggestion on window creation
For advanced OpenGL coders i miss more optinal params
i would like to see this protoypes
hWnd = TBGL_CreateSimpleWindow("Caption", XResolution, YResolution)
' create centered window on screen with zbuffer
hWnd = TBGL_CreateWindow ("Caption", XResolution, YResolution, BitDepth, windowFlags [, xPos , yPos ] )
' create centered window or fullscreen with ZBufferBits and flags and optional position
hWnd = TBGL_CreateWindowEx("Caption", XResolution, YResolution , ColorBits [, DepthBits] [,StencilBits] [,AccumBits] ,WindowFlags [, xPos , yPos ] )
' create window / fullscreen with user defined features
if any optional xBits are missing don't create this buffer
(a 2D Ortho render buffer don't need a zBuffer)
now if you support all 4 types of buffers (color, depth, stencil, accum)
you need optional params for clearing all or only user selected buffers
TBGL_ClearBuffer [ flags ]
%CLEAR_ALL ' all created buffers with one call (default or if flags are missed)
%CLEAR_COLOR = 1
%CLEAR_DEPTH = 2
%CLEAR_STENCIL = 4
%CLEAR_ACCUM = 8
Of course i can create my own OpenGL window with all my needs (shadows, ...)
but i think it's better to have only one thinBasic OpenGL module
i'm right ?
edit:
now i readed the whole TBGL help file line by line
and i must say you have done a realy good job
the sprite section is near complete
and i like the scene/entity system
Joshy
By the way you know it ?
you can share the same display lists with multiply render context's
this would be the key to have more then one active TBGL controls
(i never used this feature but it's posible and should be simple)