aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-04-01 20:50:42 +0200
committerSven Gothel <[email protected]>2011-04-01 20:50:42 +0200
commitc139362afd97e92a6a20f77f60fe952f88b94ebb (patch)
tree5461e667caccdcf4f1ca2acaf077229fe02899d8 /src/jogl/classes
parent4c3aaeaa5e105b462d5212d049db9dcd058c94c7 (diff)
Rendered: +enable(GL, bool) ; dumpFontNames..
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/opengl/Renderer.java4
-rw-r--r--src/jogl/classes/jogamp/graph/curve/opengl/TextRendererImpl01.java2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/Renderer.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/Renderer.java
index 863928ed4..57eeb016f 100644
--- a/src/jogl/classes/com/jogamp/graph/curve/opengl/Renderer.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/Renderer.java
@@ -104,6 +104,10 @@ public abstract class Renderer {
}
public final ShaderState getShaderState() { return st; }
+
+ public final void enable(GL2ES2 gl, boolean enable) {
+ st.glUseProgram(gl, enable);
+ }
public final PMVMatrix getMatrix() { return pmvMatrix; }
diff --git a/src/jogl/classes/jogamp/graph/curve/opengl/TextRendererImpl01.java b/src/jogl/classes/jogamp/graph/curve/opengl/TextRendererImpl01.java
index cebe7a19e..0f0b91412 100644
--- a/src/jogl/classes/jogamp/graph/curve/opengl/TextRendererImpl01.java
+++ b/src/jogl/classes/jogamp/graph/curve/opengl/TextRendererImpl01.java
@@ -139,7 +139,7 @@ public class TextRendererImpl01 extends TextRenderer {
if(DEBUG) {
System.err.println("TextRendererImpl01 initialized: " + Thread.currentThread()+" "+st);
- }
+ }
return true;
}