Content deleted Content added
→Example: same again |
m Various minor fixups |
||
Line 7:
==Example==
This examples shows how to draw a
<source lang="c">
int DrawGLScene(GLvoid) {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
Line 27 ⟶ 28:
return TRUE;
}
</source>
Which translates to the following [[Java (programming language)|Java]] implementation
<source lang="java">
public void display(GLAutoDrawable gLDrawable) {
final GL gl = gLDrawable.getGL();
gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
gl.glLoadIdentity();
Line 48 ⟶ 51:
gl.glFlush();
}
</source>
== Implementations ==
Line 53 ⟶ 57:
== References ==
<
== See also ==
|