PDA

View Full Version : %GL_LINE vs %GL_FILL



ErosOlmi
31-01-2007, 18:43
What about switching from surface rendering to wireframe on the fly while executing a TBGL script?
Place the below line just after your WHILE main loop of any TBGL script and see the difference pressing TAB key.


TBGL_PolygonLook iif(GetWindowKeyState(hWnd, %VK_tab), %GL_LINE, %GL_FILL)

Replace hWnd with the TBGL window handle in your script.

kryton9
03-02-2007, 00:13
Sweet new command, cool. That is always neat to see switching like that from wire to rendered. Amazing one line of magic code!!!

ErosOlmi
03-02-2007, 00:15
Merit to master Petr :D

Petr Schreiber
03-02-2007, 10:10
Hi,

not me, this is one of the just wrapped useful functions from OpenGL arsenal in TBGL :)


Bye,
Petr