Login  Register

Using GL2 from JOGL

Posted by Nelu on Feb 07, 2019; 12:21pm
URL: https://forum.jogamp.org/Using-GL2-from-JOGL-tp4039492.html

Hi,

I''ve developed a framework for chart using JOGL, and for rendering and transformations I'm using GL2.
I have two questions about this:
1. Would the chart be more fast if i would draw it using GL4?
Now drawing it's like this:
...
gl2.glLoadIdentity();
gl2.glScalef(...)
gl2.glTranslatef(...)
gl2.glBegin(GL.GL_LINE_STRIP);
for (TracePoint p : trace.getIterator()) {
   gl2.glVertex2f((float) p.getX(), (float) p.getY());
}
gl2.glEnd();
....

2. Would GL2 be deprecated or even removed in 20 years from now?