Re: My Application crashed
Posted by
gouessej on
Jul 29, 2012; 12:37pm
URL: https://forum.jogamp.org/My-Application-crashed-tp4025350p4025689.html
Hi
Where is your call to glPushMatrix()? I see only glPopMatrix(), I assume you use it in the missing code.
Your code seems correct, you use glVertexPointer(). I use interleaved arrays but what you do is fine too.
Do you really need to update the content of your direct NIO buffer every frame? Do you use transforms? If you draw a moving object with a static model and a transform, you don't need to update the content of the direct NIO buffer every frame. Do you plan to use VBOs?