From 3745290a2e139b528bdc9137168d67d72aa4853b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 21 May 2023 01:00:43 +0200 Subject: maven/trivial-test: Update pom.xml to use https (added note in README.txt) for 2.5.0-rc-20230521 Note: Maven version is 2.5.0-rc-20230521, but jar manifest version is 2.5.0-rc-20230520 due to 'day-leap'. Compare git-sha1 .. all good ;-) Refined README.txt TestJOGL prints the build-in manifest version of the jars. --- .../com/io7m/example/jogl_mvn_test_2/TestJOGL.java | 24 ++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'maven/trivial-test/src/test') diff --git a/maven/trivial-test/src/test/java/com/io7m/example/jogl_mvn_test_2/TestJOGL.java b/maven/trivial-test/src/test/java/com/io7m/example/jogl_mvn_test_2/TestJOGL.java index 6c0754e..66e543e 100644 --- a/maven/trivial-test/src/test/java/com/io7m/example/jogl_mvn_test_2/TestJOGL.java +++ b/maven/trivial-test/src/test/java/com/io7m/example/jogl_mvn_test_2/TestJOGL.java @@ -2,14 +2,18 @@ package com.io7m.example.jogl_mvn_test_2; import com.jogamp.opengl.GL; import com.jogamp.opengl.GL2; +import com.jogamp.opengl.GL2ES3; import com.jogamp.opengl.GLAutoDrawable; import com.jogamp.opengl.GLCapabilities; import com.jogamp.opengl.GLEventListener; import com.jogamp.opengl.GLProfile; +import com.jogamp.opengl.JoglVersion; import com.jogamp.opengl.fixedfunc.GLMatrixFunc; import org.junit.Test; +import com.jogamp.common.GlueGenVersion; +import com.jogamp.common.util.VersionUtil; import com.jogamp.newt.event.WindowAdapter; import com.jogamp.newt.event.WindowEvent; import com.jogamp.newt.opengl.GLWindow; @@ -20,6 +24,10 @@ public class TestJOGL private static GLWindow makeWindow( final String name) { + System.err.println(VersionUtil.getPlatformInfo()); + System.err.println(GlueGenVersion.getInstance()); + System.err.println(JoglVersion.getInstance()); + final GLProfile pro = GLProfile.getDefault(); final GLCapabilities caps = new GLCapabilities(pro); final GLWindow window = GLWindow.create(caps); @@ -38,7 +46,8 @@ public class TestJOGL int quad_x = (int) (Math.random() * 640); int quad_y = (int) (Math.random() * 480); - public void display( + @Override + public void display( final GLAutoDrawable drawable) { System.out.println("thread " @@ -59,7 +68,7 @@ public class TestJOGL g2.glLoadIdentity(); g2.glTranslated(0, 0, -1); - g2.glBegin(GL2.GL_QUADS); + g2.glBegin(GL2ES3.GL_QUADS); { g2.glVertex2d(this.quad_x, this.quad_y + 10); g2.glVertex2d(this.quad_x, this.quad_y); @@ -69,19 +78,22 @@ public class TestJOGL g2.glEnd(); } - public void dispose( + @Override + public void dispose( final GLAutoDrawable arg0) { // TODO Auto-generated method stub } - public void init( + @Override + public void init( final GLAutoDrawable arg0) { - // TODO Auto-generated method stub + System.err.println(JoglVersion.getGLInfo(arg0.getGL(), null)); } - public void reshape( + @Override + public void reshape( final GLAutoDrawable arg0, final int arg1, final int arg2, -- cgit v1.2.3