Texture performance between TextRender, GL.glCallLists, GLSL

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Texture performance between TextRender, GL.glCallLists, GLSL

xmly
Hi,

Can someone help to compare these different choices?

Thanks,
Reply | Threaded
Open this post in threaded view
|

Re: Texture performance between TextRender, GL.glCallLists, GLSL

Worker
This post was updated on .
You are mixing some different things.

With TextRenderer you can draw 2D-text over you 3d scene,
how an 'overlay', and set it with your 2D coordinates on your choosen
position.
With 'GL.glCallLists' you can make in a single call, sequences of opengl code
in your display method active, but before that, you must create a such list.
e.g.
int glName = gl.glGenLists(1);
gl.glNewList( glName, GL2.GL_COMPILE);
...........
gl.glEndList();

GLSL is the opengl shader language.
(See  fragment shader, if you want manipulating textures flexible)
But first, load your textures in your card :-)







     
Reply | Threaded
Open this post in threaded view
|

Re: Texture performance between TextRender, GL.glCallLists, GLSL

xmly
I am new to jogl/opengl, thanks for your clear explanation, :)