diff --git a/README.md b/README.md index 18b86881..a9e8148a 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,12 @@ We here show how to use Panama to generate an OpenGL wrapper for Jzy3D, which al ## Demos -These two demo open a native window. One can use the mouse to rotate the object, and double click to start an automatic rotation. +### 3D offscreen GL demo + +* `TestFBO_macOS` and `DemoFBO_Offscreen_macOS` + +### 3D onscreen GL demos +These two demo open a *native* window with Jzy3D (hence not a Java window yet). One can use the mouse to rotate the object, and double click to start an automatic rotation. | `SurfaceDemoPanamaGL`| `TeapotDemoPanamaGL`| |-|-| diff --git a/panama-gl-natives-macos/src/main/java/opengl/demos/DemoFBO_Offscreen.java b/panama-gl-natives-macos/src/main/java/opengl/demos/DemoFBO_Offscreen_macOS.java similarity index 96% rename from panama-gl-natives-macos/src/main/java/opengl/demos/DemoFBO_Offscreen.java rename to panama-gl-natives-macos/src/main/java/opengl/demos/DemoFBO_Offscreen_macOS.java index 97f008d3..f5256b8d 100644 --- a/panama-gl-natives-macos/src/main/java/opengl/demos/DemoFBO_Offscreen.java +++ b/panama-gl-natives-macos/src/main/java/opengl/demos/DemoFBO_Offscreen_macOS.java @@ -10,7 +10,7 @@ * https://github.com/jzy3d/panama-gl/issues/5 */ // VM ARGS : -XstartOnFirstThread --enable-native-access=ALL-UNNAMED --add-modules jdk.incubator.foreign -Djava.library.path=.:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries/ -public class DemoFBO_Offscreen { +public class DemoFBO_Offscreen_macOS { public static void fbo_offscreen(GL gl) { //------------------------- // Prepare VBO diff --git a/panama-gl-natives-macos/src/main/java/opengl/demos/macos/DemoFBO_Offscreen_macOS.java b/panama-gl-natives-macos/src/main/java/opengl/demos/macos/DemoFBO_Offscreen_macOS.java index 31d9c5df..7b3870a5 100644 --- a/panama-gl-natives-macos/src/main/java/opengl/demos/macos/DemoFBO_Offscreen_macOS.java +++ b/panama-gl-natives-macos/src/main/java/opengl/demos/macos/DemoFBO_Offscreen_macOS.java @@ -3,7 +3,6 @@ import opengl.GL; import opengl.GLContext; import opengl.glut.macos.GLUTContext_macOS_10_15_7; -import opengl.demos.DemoFBO_Offscreen; import opengl.macos.GL_macOS_10_15_7; /** @@ -18,6 +17,6 @@ public static void main(String[] args) { GL gl = new GL_macOS_10_15_7(); - DemoFBO_Offscreen.fbo_offscreen(gl); + opengl.demos.DemoFBO_Offscreen_macOS.fbo_offscreen(gl); } }