Login  Register

Re: JOGL on Ubuntu 15.04

Posted by Felipe S. Fernandes on Aug 24, 2015; 7:06pm
URL: https://forum.jogamp.org/JOGL-on-Ubuntu-15-04-tp4035124p4035126.html

I ran the code on my job finely, and took it to my home, just changed classes now because it requires different libraries version.

Just showing this part because there are other classes, but that's same thing, just drawing the Vertex, but on a Loop from lists. I ran other examples and this happens, sadly

Code:

@Override
        public void display(GLAutoDrawable drawable) {
               
                GL2 gl = drawable.getGL().getGL2();
               
                gl.glColor3f(1, 0, 0);
                gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
               
                for(int a = 0; a < objects.size(); a++) objects.get(a).render(drawable);
               
                canvas.repaint();
        }