Hi LionHead,
very nice lesson, thanks a lot!
Just two little details:
- It is preffered to use TBGL_ResetKeyState(), TBGL_GetAsyncKeyState(-1) does the same, but it is esoteric. Mea culpa, TBGL website did not contained this information, I updated it now.
- When rendering TBGL_Box, you do not need to use TBGL_BeginPoly / TBGL_EndPoly. Only TBGL_Color, TBGL_ColorAlpha, TBGL_TexCoord2D, TBGL_Normal,TBGL_Vertex are allowed between TBGL_BeginPoly / TBGL_EndPoly, as help file explains
I attach tuned version.
Thanks,
Petr
Bookmarks