From: Alban C. <aco...@wa...> - 2002-11-15 10:29:17
|
>Hello , >How do i use glut library in java when using Java4GL ?. For example ,I want >to use glutWireCube() command,but i do not know the syntax of it for JAVA >, I use gl.glutWireCube() or glu.glutWireCube() but it does not work. >Maybe, I must import necessary some libraries . > >Thanks in advance... The following method should work...Otherwise you can check out the applet glutFontBitmapTest in the /miscdemos directory of the gl4java samples. import gl4java.utils.glut.*; public class MyCanvas extends GLCanvas{ protected GLUTFunc glut =3D null; public void init() { glut =3D new GLUTFuncLightImpl (gl, glu); } public void display() { glut.glutWireCube(100d); } } regards, Alban Cousini=E9 |