Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Pernollet committed Dec 24, 2022
1 parent d2d9e20 commit 92fba88
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`|
|-|-|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -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);
}
}

0 comments on commit 92fba88

Please sign in to comment.