[Gambas-user] OpenGL question.

Tomek tommyline at ...2525...
Fri Jun 10 14:17:55 CEST 2011


Hi Group.
I'm trying to port some examples on OpenGL from NeHe's site, but found myself stuck with the stencil functions, wchich seems no to work properly. In the attached example you can compare object's behaviour in both C and Gambas programs. The ball on the bottom shoudn't appear anywhere else then as the reflection.  Even using external stencil functions (even thou they are implemented in Gambas GL library) didn't change anything. It may have something to do with the mode the screen is initiated, as in c program :   glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH | GLUT_STENCIL ). I just wonder if there is a way to change the way the screen is initiated? Or maybe some other solution?

----------------------------------------------------------------
Doladuj telefon przez Internet!
Sprawdz >> http://linkint.pl/f29ba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lesson26gambas.tar
Type: application/x-tar
Size: 64412 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110610/6183edf2/attachment.tar>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lesson26.tar
Type: application/x-tar
Size: 61342 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110610/6183edf2/attachment-0001.tar>


More information about the User mailing list