29package com.jogamp.opengl.test.junit.jogl.acore;
31import java.io.IOException;
33import com.jogamp.opengl.GLCapabilities;
34import com.jogamp.opengl.GLCapabilitiesImmutable;
35import com.jogamp.opengl.GLProfile;
37import org.junit.FixMethodOrder;
39import org.junit.runners.MethodSorters;
41@FixMethodOrder(MethodSorters.NAME_ASCENDING)
49 System.out.println(
"GLProfile.getDefault(): "+glp);
52 validateOnlineOffscreen(
"default", caps);
59 System.out.println(
"GLProfile.getDefault(): "+glp);
62 validateOnlineOffscreen(
"default", caps);
69 System.out.println(
"GLProfile.getDefault(): "+glp);
72 validateOnlineOffscreen(
"default", caps);
79 System.out.println(
"GLProfile.getMaxProgrammable(): "+glp);
82 validateOnlineOffscreen(
"maxProgrammable", caps);
88 System.out.println(
"GLProfile.getMaxProgrammable(): "+glp);
91 validateOnlineOffscreen(
"maxProgrammable", caps);
97 System.out.println(
"GLProfile.getMaxProgrammable(): "+glp);
100 validateOnlineOffscreen(
"maxProgrammable", caps);
107 System.out.println(
"GLProfile.getMaxFixedFunc(): "+glp);
110 validateOnlineOffscreen(
"maxFixedFunc", caps);
116 System.out.println(
"GLProfile.getMaxFixedFunc(): "+glp);
119 validateOnlineOffscreen(
"maxFixedFunc", caps);
125 System.out.println(
"GLProfile.getMaxFixedFunc(): "+glp);
128 validateOnlineOffscreen(
"maxFixedFunc", caps);
134 System.out.println(
"GLProfile GL2ES1 n/a");
145 System.out.println(
"GLProfile GL2ES2 n/a");
156 System.out.println(
"GLProfile GL4ES3 n/a");
167 System.out.println(
"GLProfile GL2GL3 n/a");
175 void testSpecificProfile(
final String glps)
throws InterruptedException {
179 validateOnlineOffscreen(glps, caps);
181 System.err.println(
"Profile "+glps+
" n/a");
225 public static void main(
final String args[])
throws IOException {
227 org.junit.runner.JUnitCore.
main(tstname);
void setBitmap(final boolean enable)
Requesting offscreen bitmap mode.
Specifies a set of OpenGL capabilities.
void setPBuffer(final boolean enable)
Requesting offscreen pbuffer mode.
void setFBO(final boolean enable)
Requesting offscreen FBO mode.
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 GLES3
The embedded OpenGL profile ES 3.x, with x >= 0.
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 getGL2GL3(final AbstractGraphicsDevice device)
Returns the GL2GL3 profile implementation, hence compatible w/ GL2GL3.
static final String GL3
The desktop OpenGL core profile 3.x, with x >= 1.
static final String GLES2
The embedded OpenGL profile ES 2.x, with x >= 0.
static GLProfile getMaxProgrammable(final AbstractGraphicsDevice device, final boolean favorHardwareRasterizer)
Returns the highest profile, implementing the programmable shader pipeline.
static String glAvailabilityToString(final AbstractGraphicsDevice device)
static final String GL4bc
The desktop OpenGL compatibility profile 4.x, with x >= 0, ie GL2 plus GL4.
static final String GL2GL3
The intersection of the desktop GL3 and GL2 profile.
static GLProfile getDefault(final AbstractGraphicsDevice device)
Returns a default GLProfile object, reflecting the best for the running platform.
static AbstractGraphicsDevice getDefaultDevice()
static GLProfile getGL2ES1(final AbstractGraphicsDevice device)
Returns the GL2ES1 profile implementation, hence compatible w/ GL2ES1.
static GLProfile getGL4ES3(final AbstractGraphicsDevice device)
Returns the GL4ES3 profile implementation, hence compatible w/ GL4ES3.
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.
static final String GL2
The desktop OpenGL profile 1.x up to 3.0.
static GLProfile getGL2ES2(final AbstractGraphicsDevice device)
Returns the GL2ES2 profile implementation, hence compatible w/ GL2ES2.
static final String GLES1
The embedded OpenGL profile ES 1.x, with x >= 0.
static final String GL4ES3
The intersection of the desktop GL4 and ES3 profile, available only if either ES3 or GL4 w/ GL_ARB_ES...
static final String GL4
The desktop OpenGL core profile 4.x, with x >= 0.
static final String GL2ES1
The intersection of the desktop GL2 and embedded ES1 profile.
static void main(final String args[])
void test32GLProfileGL2ES2()
void test13GLProfileMaxProgrammableBitmap()
void test23GLProfileMaxFixedFuncBitmap()
void test01GLProfileDefaultFBO()
void test21GLProfileMaxFixedFuncFBO()
void test02GLProfileDefaultPBuffer()
void test34GLProfileGL2GL3()
void test22GLProfileMaxFixedFuncPBuffer()
void test31GLProfileGL2ES1()
void test11GLProfileMaxProgrammableFBO()
void test12GLProfileMaxProgrammablePBuffer()
void test03GLProfileDefaultBitmap()
void test33GLProfileGL4ES3()
Specifies an immutable set of OpenGL capabilities.