diff options
author | Sven Gothel <[email protected]> | 2015-02-03 01:16:05 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-02-03 01:16:05 +0100 |
commit | b32c5de0d658a0e41eabe6590da20bc8300c0dae (patch) | |
tree | d022fecab71be00412f52ecd528900e2966625d1 /src/demos/tennis | |
parent | 4392e90ea2909d89895d992833bf9e71ae922a1d (diff) |
Bug 682 - Relocating javax.media.opengl.* -> com.jogamp.opengl.* (Part 1)
Diffstat (limited to 'src/demos/tennis')
-rw-r--r-- | src/demos/tennis/Tennis.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/demos/tennis/Tennis.java b/src/demos/tennis/Tennis.java index 7cbd9a0..a9219c7 100644 --- a/src/demos/tennis/Tennis.java +++ b/src/demos/tennis/Tennis.java @@ -1,18 +1,18 @@ package demos.tennis;
-import javax.media.opengl.GL2;
-import javax.media.opengl.GLAutoDrawable;
-import javax.media.opengl.GLEventListener;
-import javax.media.opengl.GLException;
-import javax.media.opengl.GLProfile;
-import javax.media.opengl.awt.GLCanvas;
+import com.jogamp.opengl.GL2;
+import com.jogamp.opengl.GLAutoDrawable;
+import com.jogamp.opengl.GLEventListener;
+import com.jogamp.opengl.GLException;
+import com.jogamp.opengl.GLProfile;
+import com.jogamp.opengl.awt.GLCanvas;
import com.jogamp.opengl.util.Animator;
import com.jogamp.opengl.util.texture.Texture;
import com.jogamp.opengl.util.texture.TextureCoords;
import com.jogamp.opengl.util.texture.TextureIO;
-import javax.media.opengl.GL;
-//import javax.media.opengl.glu.GLU;
+import com.jogamp.opengl.GL;
+//import com.jogamp.opengl.glu.GLU;
import javax.swing.JOptionPane;
//import java.io.BufferedReader;
@@ -304,9 +304,9 @@ private final float view_rotz = 0.0f; // Special handling for the case where the GLJPanel is translucent
// and wants to be composited with other Java 2D content
if (GLProfile.isAWTAvailable() &&
- (drawable instanceof javax.media.opengl.awt.GLJPanel) &&
- !((javax.media.opengl.awt.GLJPanel) drawable).isOpaque() &&
- ((javax.media.opengl.awt.GLJPanel) drawable).shouldPreserveColorBufferIfTranslucent()) {
+ (drawable instanceof com.jogamp.opengl.awt.GLJPanel) &&
+ !((com.jogamp.opengl.awt.GLJPanel) drawable).isOpaque() &&
+ ((com.jogamp.opengl.awt.GLJPanel) drawable).shouldPreserveColorBufferIfTranslucent()) {
gl.glClear(GL2.GL_DEPTH_BUFFER_BIT);
} else {
gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT);
|