From 7e339aa444a47dfef997f06fc5e75d010d194e3a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 21 Apr 2010 14:36:28 +0200 Subject: Add win32 script, misc stuff .. --- src/demos/GLInfo.java | 3 +++ src/demos/es1/cubefbo/Main.java | 2 +- src/demos/gears/Gears.java | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/demos/GLInfo.java b/src/demos/GLInfo.java index 7050ab8..b8575e2 100755 --- a/src/demos/GLInfo.java +++ b/src/demos/GLInfo.java @@ -93,6 +93,9 @@ public class GLInfo extends Thread implements GLEventListener { GL gl = drawable.getGL(); GLProfile glp = gl.getGLProfile(); + System.err.println(glp+" GL Profile Static: "+GLProfile.glAvailabilityToString()); + System.err.println(glp+" GL Profile Static - MaxFixedFunc: "+GLProfile.getMaxFixedFunc()); + System.err.println(glp+" GL Profile Static - MaxProgrammable: "+GLProfile.getMaxProgrammable()); System.err.println(glp+" GLCapabilities POST: "+drawable.getChosenGLCapabilities()); System.err.println(glp+" GL Profile: "+drawable.getGLProfile()); System.err.println(glp+" GL:" + gl); diff --git a/src/demos/es1/cubefbo/Main.java b/src/demos/es1/cubefbo/Main.java index 4b23513..6a1281d 100755 --- a/src/demos/es1/cubefbo/Main.java +++ b/src/demos/es1/cubefbo/Main.java @@ -74,7 +74,7 @@ public class Main implements WindowListener, MouseListener { window.enablePerfLog(true); window.setSize(width, height); - window.setFullscreen(true); + window.setFullscreen(false); window.setVisible(true); GL gl = window.getGL(); diff --git a/src/demos/gears/Gears.java b/src/demos/gears/Gears.java index 227ce87..853444d 100644 --- a/src/demos/gears/Gears.java +++ b/src/demos/gears/Gears.java @@ -7,6 +7,8 @@ import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; +import javax.media.opengl.GLProfile; +import javax.media.opengl.GLCapabilities; import javax.media.opengl.GL; import javax.media.opengl.GL2ES1; import javax.media.opengl.GL2; @@ -28,6 +30,8 @@ public class Gears implements GLEventListener, MouseListener, MouseMotionListene public static void main(String[] args) { Frame frame = new Frame("Gear Demo"); GLCanvas canvas = new GLCanvas(); + // GLCapabilities caps = new GLCapabilities(GLProfile.getDefault()); + // GLCanvas canvas = new GLCanvas(caps); final Gears gears = new Gears(); canvas.addGLEventListener(gears); -- cgit v1.2.3