This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.jogamp.opengl.*; | |
import com.jogamp.opengl.fixedfunc.*; | |
import com.jogamp.opengl.util.Animator; | |
import com.jogamp.opengl.util.ImmModeSink; | |
import com.jogamp.newt.opengl.GLWindow; | |
/** | |
* Self-contained example (within a single class only to keep it simple) | |
* displaying a rotating quad | |
*/ | |
public class JOGLQuadES1 implements GLEventListener { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dir.glob('*.jar').each {|jar| require jar } | |
java_import 'com.jogamp.opengl.GLCapabilities', | |
'com.jogamp.opengl.GLDrawableFactory', | |
'com.jogamp.opengl.GLProfile', | |
'com.jogamp.opengl.GL4', | |
'com.jogamp.nativewindow.util.Rectangle', | |
'com.jogamp.newt.opengl.GLWindow', | |
'com.jogamp.opengl.util.FPSAnimator', | |
'com.jogamp.opengl.GLEventListener', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z | |
7z x jogamp-all-platforms.7z | |
wget https://gist.github.com/xranby/42ffcd1d4298356dd177/raw/aca00bd10252496a3c772914ede5a54cad0ed2f7/TextRendering.java | |
javac -cp ./jogamp-all-platforms/jar/gluegen-rt.jar:./jogamp-all-platforms/jar/jogl-all.jar:. TextRendering.java | |
java -cp ./jogamp-all-platforms/jar/gluegen-rt.jar:./jogamp-all-platforms/jar/jogl-all.jar:. TextRendering |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2012 JogAmp Community. All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without modification, are | |
* permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, this list of | |
* conditions and the following disclaimer. | |
* | |
* 2. Redistributions in binary form must reproduce the above copyright notice, this list |