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);
88 if(
null == reqGLCaps)
return;
89 doTest(reqGLCaps,
new DemoGL2ES1Plain(
false,
false));
95 if(
null == reqGLCaps)
return;
96 doTest(reqGLCaps,
new DemoGL2ES1Plain(
true,
false));
102 if(
null == reqGLCaps)
return;
103 doTest(reqGLCaps,
new DemoGL2ES1Plain(
false,
true));
109 if(
null == reqGLCaps)
return;
110 doTest(reqGLCaps,
new DemoGL2ES1Plain(
true,
true));
116 if(
null == reqGLCaps)
return;
117 doTest(reqGLCaps,
new DemoGL2ES1ImmModeSink(
false));
123 if(
null == reqGLCaps)
return;
124 doTest(reqGLCaps,
new DemoGL2ES1ImmModeSink(
true));
130 if(
null == reqGLCaps)
return;
134 public static void main(
final String args[])
throws IOException {
135 for(
int i=0; i<args.length; i++) {
136 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 get(final AbstractGraphicsDevice device, String profile)
Returns a GLProfile object.
static final String GL2ES1
The intersection of the desktop GL2 and embedded ES1 profile.
Testing the ImmModeSink w/ GL2ES1 context.
void test03Plain__GL2ES1_VBOOnUsePlain()
void test04Plain__GL2ES1_VBOOnUseArrayData()
void test01Plain__GL2ES1_VBOOffUsePlain()
void test07ImmSinkGL2ES1_VBOOnTexture()
void test06ImmSinkGL2ES1_VBOOn()
static void main(final String args[])
void test02Plain__GL2ES1_VBOOffUseArrayData()
void test05ImmSinkGL2ES1_VBOOff()
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.