29package com.jogamp.opengl.test.junit.jogl.acore.glels;
31import java.io.IOException;
33import com.jogamp.opengl.GLCapabilities;
34import com.jogamp.opengl.GLProfile;
37import com.jogamp.opengl.GLEventListenerState;
38import com.jogamp.opengl.util.Animator;
40import com.jogamp.opengl.test.junit.util.GLEventListenerCounter;
43import org.junit.FixMethodOrder;
44import org.junit.runners.MethodSorters;
62@FixMethodOrder(MethodSorters.NAME_ASCENDING)
66 public
void test21GLWindowGL2ES2() throws InterruptedException {
68 if(
null == reqGLCaps)
return;
69 testGLWindowImpl(reqGLCaps);
73 public
void test22GLWindowGLES2() throws InterruptedException {
75 if(
null == reqGLCaps)
return;
76 testGLWindowImpl(reqGLCaps);
79 private void testGLWindowImpl(
final GLCapabilities caps)
throws InterruptedException {
80 final SnapshotGLEventListener snapshotGLEventListener =
new SnapshotGLEventListener();
90 testGLADOneLifecycle(
null, caps, GLADType.GLWindow, width,
92 snapshotGLEventListener,
93 null, glels, animator);
98 testGLADOneLifecycle(
null, caps, GLADType.GLWindow, width+100,
99 height+100, glelTracker,
100 snapshotGLEventListener,
101 glels[0],
null,
null);
106 public static void main(
final String args[])
throws IOException {
107 for(
int i=0; i<args.length; i++) {
108 if(args[i].equals(
"-time")) {
111 duration = Integer.parseInt(args[i]);
112 }
catch (
final Exception ex) { ex.printStackTrace(); }
Specifies a set of OpenGL capabilities.
GLEventListenerState is holding GLAutoDrawable components crucial to relocating all its GLEventListen...
Specifies the the OpenGL profile.
static final String GL2ES2
The intersection of the desktop GL3, GL2 and embedded ES2 profile.
static final String GLES2
The embedded OpenGL profile ES 2.x, with x >= 0.
Test re-association of GLContext/GLDrawables, here GLContext's survival of GLDrawable destruction and...
Test re-association of GLContext/GLDrawables, here GLContext's survival of GLDrawable destruction and...
static void main(final String args[])
final synchronized boolean start()
Starts this animator, if not running.
final synchronized boolean stop()
Stops this animator.