All pastes #902354 Raw Edit

Anonymous

public java v1 · immutable
·published 2008-02-13 12:51 UTC
rendered paste body
	public void display(GLAutoDrawable gLDrawable)	{		final GL gl = gLDrawable.getGL();				gl.glMatrixMode(GL.GL_MODELVIEW);		gl.glLoadIdentity();		gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);		glu.gluLookAt(5.0, 6.0, 25.0, //eye position				  	  0.0, 5.0, 0.0,  //look at				  	  0.0, 1.0, 0.0); //y-axis is up				for (Entity e : entities)		{			gl.glColor3f(0.0f, 0.8f, 0.0f);			e.render(gl);		}		//render hud		gl.glDisable(GL.GL_DEPTH_TEST);		gl.glPushMatrix();		gl.glLoadIdentity();		//bind???		gl.glEnable(GL.GL_BLEND);		gl.glPopMatrix();		gl.glEnable(GL.GL_DEPTH_TEST);		gl.glDisable(GL.GL_BLEND);	}