Package demos.opengl

Class Teapot_Panama_macOS

java.lang.Object
demos.opengl.Teapot_Panama_macOS

public class Teapot_Panama_macOS extends Object
This is the original demonstration program provided at https://github.com/sundararajana/panama-jextract-samples/tree/master/opengl. Requires VM args for MacOS -XstartOnFirstThread --enable-native-access=ALL-UNNAMED --add-modules jdk.incubator.foreign -Djava.library.path=.:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries/ This is the original demonstration program provided at https://github.com/sundararajana/panama-jextract-samples/tree/master/opengl. Requires modifying import manually
  • MacOS : import static opengl.macos.v10_15_3.glut_h.*;
  • Ubuntu : import static opengl.ubuntu.v20.glut_h.*;
Requires VM args MacOS / Java17 -XstartOnFirstThread --enable-native-access=ALL-UNNAMED --add-modules jdk.incubator.foreign -Djava.library.path=.:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries/ MacOS /Java19 -XstartOnFirstThread --enable-native-access=ALL-UNNAMED --enable-preview -Djava.library.path=.:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries/ Ubuntu --enable-native-access=ALL-UNNAMED --add-modules jdk.incubator.foreign -Djava.library.path=.:/usr/lib/x86_64-linux-gnu/
  • Method Details

    • main

      public static void main(String[] args)