[Gambas-user] Open GL help needed
Jaap Cramer
jaap_cramer at ...67...
Thu Jan 15 01:53:25 CET 2009
Hi
Sorry I had send my question twice. I recently enabled the mailing list and thought my message did not get through...
I solved my rotation-problem. I had to enable the depth with the line Gl.Enable(Gl.GL_DEPTH_TEST)
All rotations (x,y and z, work now properly)
Remains the 2 little odd things:
* set focus behaviour
* gb.sdl.info and gb.sdl.list have to be contained in next ubuntu packages
thanks!
Jaap
____________________________
Original message:
____________________________
Hi!
I've written a litte program wich uses Open GL. I draw the triangle. I discovered some
strange behaviour. Nothing is drawn, unless I set the focus on something else, and then on
the GlArea. Which is strange, i think.
However. That is not my MAIN problem. I dont understand how to use the Gl.Rotatef function.
The button 'rotate' switches this function on and off. When it's Off, the triangle is
correctly draw. When the value in TRUE, something starts moving, but it is to close: a huge
green area, and after a little while it moves left, and then comes back... It looks like a
rotation but to close. I hope my description is clear, and someone is able to help me.
I use Gambas 2.7, Ubuntu 8.10 And the GambasGears demo is working properly (After I put the
gb.sdl.info and gb.sdl.list in /usr/share/gambas2/info. Ubuntu package error).
Jaap
_________________________________________________________________
Blijf altijd op de hoogte van wat jouw vrienden doen
http://home.live.com
More information about the User
mailing list