Guest User

Untitled

a guest
Jun 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. public void display(GLAutoDrawable gLDrawable)
  2. {
  3. final GL gl = gLDrawable.getGL();
  4. final GLU glu = new GLU();
  5. GLUT glut = new GLUT();
  6. gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
  7. gl.glLoadIdentity();
  8. glu.gluLookAt(0f,0f,0f,0f,0f,-800f,0,1,0);
  9. gl.glTranslatef(0.0f,0.0f,5.0f);
  10. gl.glColor3f(1f, 1f, 1f);
  11.  
  12. gl.glRasterPos2f(250f,250f);
  13.  
  14. glut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, "Hello World!");
  15.  
  16. gl.glFlush();
  17. }
  18.  
  19. glutSwapBuffers();
  20.  
  21. glut.glutSwapBuffers();
  22.  
  23. glu.gluLookAt(0f,0f,0f,0f,0f,-800f,0,1,0);
Add Comment
Please, Sign In to add comment