29package com.jogamp.opengl.test.junit.jogl.util;
31import java.io.IOException;
33import com.jogamp.opengl.GLCapabilities;
34import com.jogamp.opengl.GLCapabilitiesImmutable;
35import com.jogamp.opengl.GLEventListener;
36import com.jogamp.opengl.GLProfile;
39import org.junit.FixMethodOrder;
40import org.junit.runners.MethodSorters;
42import com.jogamp.newt.opengl.GLWindow;
43import com.jogamp.opengl.test.junit.util.MiscUtils;
44import com.jogamp.opengl.test.junit.util.UITestCase;
49@FixMethodOrder(MethodSorters.NAME_ASCENDING)
51 static int duration = 100;
52 static final int iWidth = 400;
53 static final int iHeight = 400;
57 System.err.println(
"Profile "+profile+
" n/a");
64 System.out.println(
"Requested GL Caps: "+reqGLCaps);
80 Thread.sleep(duration);
100 if(
null == reqGLCaps)
return;
107 if(
null == reqGLCaps)
return;
111 public static void main(
final String args[])
throws IOException {
112 for(
int i=0; i<args.length; i++) {
113 if(args[i].equals(
"-time")) {
An implementation of GLAutoDrawable and Window interface, using a delegated Window instance,...
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 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 GLProfile getMaxFixedFunc(final AbstractGraphicsDevice device, final boolean favorHardwareRasterizer)
Returns the highest profile, implementing the fixed function pipeline.
static final String GL2ES2
The intersection of the desktop GL3, GL2 and embedded ES2 profile.
static GLProfile get(final AbstractGraphicsDevice device, String profile)
Returns a GLProfile object.
Testing the ImmModeSink w/ GL2ES1 context.
void test05ImmSinkGL2ES2_VBOOff_Direct()
void test06ImmSinkGL2ES2_VBOOn_Direct()
void test05ImmSinkGL2ES2_VBOOff_ShaderState()
void test06ImmSinkGL2ES2_VBOOn_ShaderState()
static void main(final String args[])
static int atoi(final String str, final int def)
void addGLEventListener(GLEventListener listener)
Adds the given listener to the end of this drawable queue.
Specifies an immutable set of OpenGL capabilities.
Declares events which client code can use to manage OpenGL rendering into a GLAutoDrawable.