Login  Register

Re: what's wrong with this code?

Posted by gouessej on Oct 29, 2018; 8:39am
URL: https://forum.jogamp.org/what-s-wrong-with-this-code-tp4039269p4039276.html

Hello

I advise you to start from a working example that doesn't mix the fixed pipeline with the programmable pipeline:
http://mail.jogamp.org/git/?p=jogl-demos.git;a=blob;f=src/demos/es2/RawGL2ES2demo.java;hb=HEAD

Moreover, if you stick to the fixed pipeline, rather use glPushMatrix, glPopMatrix and glLoadIdentity instead of calling twice glTranslate. Learn what the current matrix is...
Julien Gouesse | Personal blog | Website