29package com.jogamp.opengl.test.junit.jogl.acore;
31import com.jogamp.newt.opengl.GLWindow;
32import com.jogamp.opengl.test.junit.util.UITestCase;
34import com.jogamp.opengl.test.junit.jogl.demos.PointsDemo;
35import com.jogamp.opengl.test.junit.jogl.demos.es1.PointsDemoES1;
36import com.jogamp.opengl.test.junit.jogl.demos.es2.PointsDemoES2;
38import com.jogamp.opengl.GLCapabilities;
39import com.jogamp.opengl.GLProfile;
41import org.junit.Assert;
42import org.junit.BeforeClass;
43import org.junit.AfterClass;
45import org.junit.FixMethodOrder;
46import org.junit.runners.MethodSorters;
48@FixMethodOrder(MethodSorters.NAME_ASCENDING)
50 static int width, height;
64 Assert.assertNotNull(glWindow);
65 glWindow.
setTitle(getSimpleTestName(
"."));
72 glWindow.
setSize(width, height);
75 demo.setSmoothPoints(
false);
80 demo.setSmoothPoints(
true);
85 demo.setPointParams(2f, 40f, 0.01f, 0.0f, 0.01f, 1f);
97 runTestGL0(caps, demo);
120 runTestGL(caps, demo,
false);
129 runTestGL(caps, demo,
false);
146 static long duration = 1000;
148 public static void main(
final String args[]) {
149 for(
int i=0; i<args.length; i++) {
150 if(args[i].equals(
"-time")) {
153 duration = Integer.parseInt(args[i]);
154 }
catch (
final Exception ex) { ex.printStackTrace(); }
An implementation of GLAutoDrawable and Window interface, using a delegated Window instance,...
final void setTitle(final String title)
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 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.
static GLProfile get(final AbstractGraphicsDevice device, String profile)
Returns a GLProfile object.
static final String GL2
The desktop OpenGL profile 1.x up to 3.0.
static final String GLES1
The embedded OpenGL profile ES 1.x, with x >= 0.
void runTestGL(final GLCapabilities caps, final PointsDemo demo, final boolean forceFFPEmu)
static void main(final String args[])
void runTestGL0(final GLCapabilities caps, final PointsDemo demo)
static void releaseClass()
void setForceFFPEmu(final boolean forceFFPEmu, final boolean verboseFFPEmu, final boolean debugFFPEmu, final boolean traceFFPEmu)
void setPostSNDetail(final String v)
void addGLEventListener(GLEventListener listener)
Adds the given listener to the end of this drawable queue.
GLEventListener removeGLEventListener(GLEventListener listener)
Removes the given listener from this drawable queue.