cz.cuni.jagrlib.iface
Interface GLGraphics

All Known Implementing Classes:
DrawAxesGL, GLBrepRender, SimpleGLGraphics

public interface GLGraphics

GL graphics producer. Repaints the canvas using OpenGL (JOGL library). Can be used with GL graphics viewer or PBuffer if available.

Since:
0.24

Method Summary
 void initRoutine(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu)
          Initialization of GL context.
 void paintRoutine(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu)
          Routine responsible for GL context repainting.
 void reshapeRoutine(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, int x, int y, int width, int height)
          Reshape routine is called every time the dimensions of GL context are changed.
 

Method Detail

initRoutine

void initRoutine(javax.media.opengl.GL gl,
                 javax.media.opengl.glu.GLU glu)
Initialization of GL context. It's called in init-time of every GL context.

Parameters:
gl - GL commands access object.
glu - GLU commands access object.

paintRoutine

void paintRoutine(javax.media.opengl.GL gl,
                  javax.media.opengl.glu.GLU glu)
Routine responsible for GL context repainting.

Parameters:
gl - GL commands access object.
glu - GLU commands access object.

reshapeRoutine

void reshapeRoutine(javax.media.opengl.GL gl,
                    javax.media.opengl.glu.GLU glu,
                    int x,
                    int y,
                    int width,
                    int height)
Reshape routine is called every time the dimensions of GL context are changed. It usually contains projection setup.

Parameters:
gl - GL commands access object.
glu - GLU commands access object.
x - X position of reshaped canvas.
y - Y position of reshaped canvas.
width - Width of reshaped canvas.
height - Height of reshaped canvas.