Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void display(GLAutoDrawable gLDrawable)
- {
- final GL gl = gLDrawable.getGL();
- final GLU glu = new GLU();
- GLUT glut = new GLUT();
- gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
- gl.glLoadIdentity();
- glu.gluLookAt(0f,0f,0f,0f,0f,-800f,0,1,0);
- gl.glTranslatef(0.0f,0.0f,5.0f);
- gl.glColor3f(1f, 1f, 1f);
- gl.glRasterPos2f(250f,250f);
- glut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, "Hello World!");
- gl.glFlush();
- }
- glutSwapBuffers();
- glut.glutSwapBuffers();
- glu.gluLookAt(0f,0f,0f,0f,0f,-800f,0,1,0);
Add Comment
Please, Sign In to add comment