28package com.jogamp.opengl.test.junit.jogl.demos.gl3.newt;
30import java.io.IOException;
32import com.jogamp.opengl.GLCapabilities;
33import com.jogamp.opengl.GLProfile;
35import org.junit.Assert;
37import org.junit.FixMethodOrder;
38import org.junit.runners.MethodSorters;
40import com.jogamp.newt.opengl.GLWindow;
41import com.jogamp.opengl.test.junit.jogl.demos.gl3.GeomShader01TextureGL3;
42import com.jogamp.opengl.test.junit.util.MiscUtils;
43import com.jogamp.opengl.test.junit.util.QuitAdapter;
44import com.jogamp.opengl.test.junit.util.UITestCase;
45import com.jogamp.opengl.util.Animator;
50@FixMethodOrder(MethodSorters.NAME_ASCENDING)
52 static long duration = 500;
56 System.err.println(
"Profile "+profile+
" n/a");
65 if(
null == caps ) {
return; }
72 if(
null == caps ) {
return; }
79 if(
null == caps ) {
return; }
86 if(
null == caps ) {
return; }
90 private void testImpl(
final GLCapabilities caps,
final int geomShader)
throws InterruptedException {
92 Assert.assertNotNull(glWindow);
95 glWindow.
setTitle(
"JOGL Geometry Shader Banana Test");
103 final SnapshotGLEventListener snapshotGLEventListener =
new SnapshotGLEventListener();
110 snapshotGLEventListener.setMakeSnapshot();
112 while(!quitAdapter.shouldQuit() && animator.isAnimating() && animator.
getTotalFPSDuration()<duration) {
120 public static void main(
final String args[])
throws IOException {
121 for(
int i=0; i<args.length; i++) {
122 if(args[i].equals(
"-time")) {
An implementation of GLAutoDrawable and Window interface, using a delegated Window instance,...
final boolean isNativeValid()
final void setTitle(final String title)
final void addKeyListener(final KeyListener l)
Appends the given com.jogamp.newt.event.KeyListener to the end of the list.
final void setSize(final int width, final int height)
Sets the size of the window's client area in window units, excluding decorations.
final void setVisible(final boolean visible)
Calls setVisible(true, visible), i.e.
final void addWindowListener(final WindowListener l)
Appends the given com.jogamp.newt.event.WindowListener to the end of the list.
final void destroy()
Destroys all resources associated with this GLAutoDrawable, inclusive the GLContext.
static GLWindow create(final GLCapabilitiesImmutable caps)
Creates a new GLWindow attaching a new Window referencing a new default Screen and default Display wi...
Specifies a set of OpenGL capabilities.
Specifies the the OpenGL profile.
static boolean isAvailable(final AbstractGraphicsDevice device, final String profile)
Returns the availability of a profile on a device.
static final String GL3
The desktop OpenGL core profile 3.x, with x >= 1.
static GLProfile get(final AbstractGraphicsDevice device, String profile)
Returns a GLProfile object.
static final String GL3bc
The desktop OpenGL compatibility profile 3.x, with x >= 1, ie GL2 plus GL3.
JOGL Geometry ShaderCode test case using OpenGL 3.2 core profile features only.
Test Geometry shader demo GeomShader01TextureGL3.
void test12_GL3Compat_FlipXYZ()
void test01_GL3Core_Passthrough()
void test02_GL3Core_FlipXYZ()
static void main(final String args[])
void test11_GL3Compat_Passthrough()
static long atol(final String str, final long def)
final long getTotalFPSDuration()
final void setUpdateFPSFrames(final int frames, final PrintStream out)
final synchronized boolean start()
Starts this animator, if not running.
final synchronized boolean stop()
Stops this animator.
void addGLEventListener(GLEventListener listener)
Adds the given listener to the end of this drawable queue.