summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXerxes Rånby <[email protected]>2012-09-20 12:53:49 +0200
committerXerxes Rånby <[email protected]>2012-09-20 12:53:49 +0200
commit970515a87942224361a036d3ad17713ee3dac366 (patch)
tree7224296d49ad8e85e9c360b735b7c86c82f33b5c
parentc9553e82282d86e336ab21e6565f0c828cfb8351 (diff)
Fix ecj warnings in src/demos/es2/RawGL2ES2demo.java
Removed unused imports, unused c field and the unused printMatrix function. Signed-off-by: Xerxes Rånby <[email protected]>
-rw-r--r--src/demos/es2/RawGL2ES2demo.java21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/demos/es2/RawGL2ES2demo.java b/src/demos/es2/RawGL2ES2demo.java
index f03de41..6cccc6f 100644
--- a/src/demos/es2/RawGL2ES2demo.java
+++ b/src/demos/es2/RawGL2ES2demo.java
@@ -32,24 +32,12 @@ import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLEventListener;
import javax.media.opengl.GLProfile;
import javax.media.opengl.GLCapabilities;
-import javax.media.opengl.GLContext;
import com.jogamp.newt.opengl.GLWindow;
-import com.jogamp.opengl.util.GLArrayDataServer;
-import com.jogamp.opengl.util.glsl.ShaderCode;
-import com.jogamp.opengl.util.glsl.ShaderState;
-import com.jogamp.opengl.util.glsl.ShaderProgram;
import com.jogamp.opengl.util.*;
import com.jogamp.common.nio.Buffers;
-import java.nio.ByteBuffer;
-import java.nio.ByteOrder;
import java.nio.FloatBuffer;
-import java.nio.Buffer;
-
-import javax.swing.JFrame;
-import javax.media.opengl.*;
-import javax.media.opengl.awt.GLCanvas;
/**
* <pre>
@@ -226,13 +214,6 @@ static final String fragmentShader =
return multiply(m, r);
}
- private void printMatrix(float[] m){
- System.out.println(m[0]+" "+m[1]+" "+m[2]+" "+m[3]+"\n"+
- m[4]+" "+m[5]+" "+m[6]+" "+m[7]+"\n"+
- m[8]+" "+m[9]+" "+m[10]+" "+m[11]+"\n"+
- m[12]+" "+m[13]+" "+m[14]+" "+m[15]+"\n");
- }
-
/* Introducing the GL2ES2 demo
*
* How to render a triangle using 424 lines of code using the RAW
@@ -243,7 +224,6 @@ static final String fragmentShader =
*/
private double theta=0;
private double s=0;
- private double c=0;
private static int width=1920;
private static int height=1080;
@@ -396,7 +376,6 @@ static final String fragmentShader =
// Update variables used in animation
theta += 0.08;
s = Math.sin(theta);
- c = Math.cos(theta);
// Get gl
GL2ES2 gl = drawable.getGL().getGL2ES2();