GLUT : glutPostRedisplay and glutDisplayFunc are undefined

Hello people,

I’m using Eclipse wiht JDK 1.5.12 and JOGL SR-231 1.1.0.

How can i use this methods glutPostRedisplay and glutDisplayFunc. Thos method’s are undefineds.

Part of my code:

import com.sun.opengl.util.;
import javax.media.opengl.
;
import javax.media.opengl.glu.GLU;
import java.awt.;
import java.awt.event.
;
import javax.swing.;
import java.io.
;
import java.nio.;
import javax.media.opengl.glu.
;
import sun.security.provider.certpath.Vertex;

import com.sun.opengl.util.GLUT;
import com.sun.opengl.util.BufferUtil;

 .......

private static final GLUT glut = new GLUT();
private static final GLU glu = new GLU();

    ......

glut.glutDisplayFunc(“my_method”);

I’m want to create trace another line when a mouse click event occur.

Thanks!

JA.

Hi,

The functions you’re looking for are useful in the C version of openGL you should have a look to the Gears demos for how to set up display.