Skip to content

Instantly share code, notes, and snippets.

@void256
Created June 27, 2013 20:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save void256/0710d7890339e61d145e to your computer and use it in GitHub Desktop.
Save void256/0710d7890339e61d145e to your computer and use it in GitHub Desktop.
build nifty and run jogl demos
# clone the repo
git clone https://github.com/void256/nifty-gui.git
cd nifty-gui
# and make sure we're on the right branch (1.3)
git checkout 1.3
# compile and install everything in the local maven repo
mvn install
# switch to the jogl examples project
cd nifty-examples-jogl
# run nifty 1.2 tutorial demo. options:
# - without arguments -> run standard old renderer
# - add "-Dexec.arguments=batch" -> run batched renderer
# - add "-Dexec.arguments=core" -> run batched renderer using OpenGL core profile
mvn exec:java -Dexec.mainClass=de.lessvoid.nifty.examples.jogl.NiftyTutorialJOGL
mvn exec:java -Dexec.mainClass=de.lessvoid.nifty.examples.jogl.NiftyTutorialJOGL -Dexec.arguments=batch
mvn exec:java -Dexec.mainClass=de.lessvoid.nifty.examples.jogl.NiftyTutorialJOGL -Dexec.arguments=core
# run controls demo. options:
# - without arguments -> run standard old renderer
# - add "-Dexec.arguments=batch" -> run batched renderer
# - add "-Dexec.arguments=core" -> run batched renderer using OpenGL core profile
mvn exec:java -Dexec.mainClass=de.lessvoid.nifty.examples.jogl.ControlsDemoJOGL
mvn exec:java -Dexec.mainClass=de.lessvoid.nifty.examples.jogl.ControlsDemoJOGL -Dexec.arguments=batch
mvn exec:java -Dexec.mainClass=de.lessvoid.nifty.examples.jogl.ControlsDemoJOGL -Dexec.arguments=core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment