summaryrefslogtreecommitdiffstats
path: root/src/demo/GPUTextNewtDemo01.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-03-30 06:59:43 +0200
committerSven Gothel <[email protected]>2011-03-30 06:59:43 +0200
commit55356d999638491980a90cb2263b55c5d2e53e91 (patch)
tree711457c8b1bedcf1d71fd0ba0252155b2895ce7f /src/demo/GPUTextNewtDemo01.java
parent5f0293b84d0146d9e750ea7e75caaa101ae3b3c3 (diff)
Font Refactoring ; Misc Changes ; Demo/Test Update
Font Refactoring - Notion of distributed FontSet - FontFactory may produce FontSet and/or a Font by absolute ttf file path - Adding support for free Ubuntu fonts - Remove Vertex.Factory dependency for Font creation - Typecast Impl - Fix CmapTable selection - Fix horizontal spacing of space - Misc Changes - HwTextRenderer - Offer reshape for perspective and orthogonal view - Expose PMVMatrix, allowing user to setup their own view math. Demo Update - Dump font set a-zA-Z... - Dump 'lazy dog ..' text - Action: - s: toogle 'font set' - f: toggle fps - v: toggle v-sync - space: toggle font (ubuntu/java) - formated screenshot filename w/ font name Test Update: - add font set iteration
Diffstat (limited to 'src/demo/GPUTextNewtDemo01.java')
-rw-r--r--src/demo/GPUTextNewtDemo01.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/demo/GPUTextNewtDemo01.java b/src/demo/GPUTextNewtDemo01.java
index a07ead417..934eba1ba 100644
--- a/src/demo/GPUTextNewtDemo01.java
+++ b/src/demo/GPUTextNewtDemo01.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 GPUTextNewtDemo01 {
static final boolean DEBUG = false;
@@ -61,14 +61,16 @@ public class GPUTextNewtDemo01 {
window = GLWindow.create(caps);
window.setPosition(10, 10);
- window.setSize(400, 400);
+ window.setSize(800, 400);
window.setTitle("GPU Text Newt Demo 01 - r2t0 msaa1");
textGLListener = new TextGLListener();
textGLListener.attachTo(window);
+ window.enablePerfLog(true);
window.setVisible(true);
- FPSAnimator animator = new FPSAnimator(10);
+ // FPSAnimator animator = new FPSAnimator(10);
+ Animator animator = new Animator();
animator.add(window);
animator.start();
}
@@ -76,8 +78,10 @@ public class GPUTextNewtDemo01 {
private class TextGLListener extends GPUTextGLListenerBase01 {
public TextGLListener() {
super(SVertex.factory(), Region.SINGLE_PASS, DEBUG, TRACE);
+ // FBO size unrelated with 1 pass
//setMatrix(-10, 10, 0f, -70, 0);
- setMatrix(-10, 10, 0f, -100, 400);
+ // setMatrix(-80, -30, 0f, -100, 0);
+ setMatrix(-400, -30, 0f, -500, 0);
}
public void init(GLAutoDrawable drawable) {