aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/jogl
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-05-03 15:13:34 -0700
committerHarvey Harrison <[email protected]>2012-05-03 15:13:34 -0700
commitd1ad9b0279a450d52287e2c34c012aacbbc2566b (patch)
treeeec512e983a3ace372a198344f7eae731db57402 /src/classes/jogl
parentdfc10a8ff29e43d49b7fe880bb58052d5c7262e2 (diff)
j3dcore: remove the ability to set the shading language to CG, assume GLSL
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes/jogl')
-rw-r--r--src/classes/jogl/javax/media/j3d/JoglPipeline.java32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/classes/jogl/javax/media/j3d/JoglPipeline.java b/src/classes/jogl/javax/media/j3d/JoglPipeline.java
index b269a56..2c4fb3d 100644
--- a/src/classes/jogl/javax/media/j3d/JoglPipeline.java
+++ b/src/classes/jogl/javax/media/j3d/JoglPipeline.java
@@ -80,10 +80,6 @@ import com.sun.opengl.util.BufferUtil;
* pipeline.
*/
class JoglPipeline extends Pipeline {
-
- // Flags indicating whether the Cg or GLSL libraries are available.
- private boolean cgLibraryAvailable = false;
-
// Currently prints for entry points not yet implemented
private static final boolean DEBUG = true;
// Currently prints for entry points already implemented
@@ -118,34 +114,6 @@ class JoglPipeline extends Pipeline {
}
/**
- * Load all of the required libraries
- */
- void loadLibraries(int globalShadingLanguage) {
- if (globalShadingLanguage == Shader.SHADING_LANGUAGE_CG) {
- // Try to load the jogl_cg library and set the
- // cgLibraryAvailable flag to true if loads successfully; note
- // that successfully performing initialization of this class
- // will cause the Cg native library to be loaded on our behalf
- try {
- Class.forName("com.sun.opengl.cg.CgGL");
- cgLibraryAvailable = true;
- } catch (Exception ex) {
- System.err.println(ex);
- } catch (Error ex) {
- System.err.println(ex);
- }
- }
- }
-
- /**
- * Returns true if the Cg library is loaded and available. Note that this
- * does not necessarily mean that Cg is supported by the graphics card.
- */
- boolean isCgLibraryAvailable() {
- return cgLibraryAvailable;
- }
-
- /**
* Returns true if the GLSL library is loaded and available. Note that this
* does not necessarily mean that GLSL is supported by the graphics card.
*/