summaryrefslogtreecommitdiffstats
path: root/src/demo/GPUTextNewtDemo02.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demo/GPUTextNewtDemo02.java')
-rw-r--r--src/demo/GPUTextNewtDemo02.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/demo/GPUTextNewtDemo02.java b/src/demo/GPUTextNewtDemo02.java
index 012ee9936..b46053f1d 100644
--- a/src/demo/GPUTextNewtDemo02.java
+++ b/src/demo/GPUTextNewtDemo02.java
@@ -36,7 +36,7 @@ import javax.media.opengl.GLProfile;
import com.jogamp.graph.curve.Region;
import com.jogamp.graph.geom.opengl.SVertex;
import com.jogamp.newt.opengl.GLWindow;
-import com.jogamp.opengl.util.FPSAnimator;
+import com.jogamp.opengl.util.Animator;
public class GPUTextNewtDemo02 {
/**
@@ -70,15 +70,17 @@ public class GPUTextNewtDemo02 {
window = GLWindow.create(caps);
window.setPosition(10, 10);
- window.setSize(400, 400);
+ window.setSize(800, 400);
window.setTitle("GPU Text Newt Demo 02 - r2t1 msaa0");
textGLListener = new TextGLListener();
textGLListener.attachTo(window);
+ window.enablePerfLog(true);
window.setVisible(true);
- FPSAnimator animator = new FPSAnimator(60);
+ // FPSAnimator animator = new FPSAnimator(60);
+ Animator animator = new Animator();
animator.add(window);
animator.start();
}
@@ -86,7 +88,10 @@ public class GPUTextNewtDemo02 {
private class TextGLListener extends GPUTextGLListenerBase01 {
public TextGLListener() {
super(SVertex.factory(), Region.TWO_PASS, DEBUG, TRACE);
- setMatrix(-10, 10, 0f, -100, 400);
+ // FIXME: Rami will fix FBO size !!
+ // setMatrix(-10, 10, 0f, -100, 400);
+ // setMatrix(-80, -30, 0f, -100, window.getWidth()*3);
+ setMatrix(-400, -30, 0f, -500, window.getWidth()*3);
}
public void init(GLAutoDrawable drawable) {