Login  Register

Re: Creating objects with simple drawing methods of JOGL

Posted by Lawa on Dec 31, 2015; 2:49pm
URL: https://forum.jogamp.org/Creating-objects-with-simple-drawing-methods-of-JOGL-tp4035938p4035956.html

I don't think you understood what I'm trying to do here ..
for example lets say I have this in display() method :
gl.glBegin(GL2.GL_POLYGON);
gl.glVertex2i(0,0);
gl.glVertex2i(0,100);
gl.glVertex2i(100,100);
gl.glVertex2i(100,0);
gl.glEnd();

basically this is a rectangular shape (or any other shape) created using the basic methods of JOGL how do I implement physics engine to this particular shape ?