Jogamp
Bug 682 - Relocating javax.media.opengl.* -> com.jogamp.opengl.* (Part 2)
[jogl-demos.git] / maven / jp4da / jp4da-core / src / main / java / com / io7m / examples / jp4da / Example.java
CommitLineData
76da2b16
MR
1package com.io7m.examples.jp4da;
2
60675480
SG
3import com.jogamp.opengl.GL;
4import com.jogamp.opengl.GL2ES2;
5import com.jogamp.opengl.GLAutoDrawable;
6import com.jogamp.opengl.GLEventListener;
76da2b16
MR
7
8public class Example implements GLEventListener
9{
10 @Override public void display(
11 final GLAutoDrawable drawable)
12 {
13 final GL2ES2 gl = drawable.getGL().getGL2ES2();
14
15 gl.glClearColor(0f, 0f, 1.0f, 1f);
16 gl.glClear(GL.GL_COLOR_BUFFER_BIT);
17 }
18
19 @Override public void dispose(
20 @SuppressWarnings("unused") final GLAutoDrawable drawable)
21 {
22 // Nothing.
23 }
24
25 @Override public void init(
26 @SuppressWarnings("unused") final GLAutoDrawable drawable)
27 {
28 // Nothing.
29 }
30
31 @Override public void reshape(
32 @SuppressWarnings("unused") final GLAutoDrawable drawable,
33 @SuppressWarnings("unused") final int x,
34 @SuppressWarnings("unused") final int y,
35 @SuppressWarnings("unused") final int w,
36 @SuppressWarnings("unused") final int h)
37 {
38 // Nothing.
39 }
40}
http://JogAmp.org git info: FAQ, tutorial and man pages.