29package com.jogamp.opengl.test.junit.jogl.acore;
31import java.io.IOException;
33import com.jogamp.opengl.GLDrawableFactory;
34import com.jogamp.opengl.GLProfile;
36import org.junit.FixMethodOrder;
38import org.junit.runners.MethodSorters;
40import com.jogamp.common.GlueGenVersion;
41import com.jogamp.common.util.VersionUtil;
42import com.jogamp.nativewindow.NativeWindowVersion;
43import com.jogamp.newt.NewtVersion;
44import com.jogamp.opengl.JoglVersion;
46@FixMethodOrder(MethodSorters.NAME_ASCENDING)
51 System.err.println(VersionUtil.getPlatformInfo());
52 System.err.println(GlueGenVersion.getInstance());
58 if(
null != deskFactory ) {
62 if(
null != eglFactory ) {
72 System.out.println(
"GLProfile.getDefault(): "+glp);
73 validateOffline(
"default", glp);
74 validateOnlineOnscreen(
"default", glp);
81 System.out.println(
"GLProfile.getMaxProgrammable(): "+glp);
82 validateOffline(
"maxProgrammable", glp);
83 validateOnlineOnscreen(
"maxProgrammable", glp);
90 System.out.println(
"GLProfile.getMaxFixedFunc(): "+glp);
91 validateOffline(
"maxFixedFunc", glp);
92 validateOnlineOnscreen(
"maxFixedFunc", glp);
98 System.out.println(
"GLProfile GL2ES1 n/a");
109 System.out.println(
"GLProfile GL2ES2 n/a");
120 System.out.println(
"GLProfile GL4ES3 n/a");
131 System.out.println(
"GLProfile GL2GL3 n/a");
139 void testSpecificProfile(
final String glps)
throws InterruptedException {
142 validateOffline(glps, glp);
143 validateOnlineOnscreen(glps, glp);
145 System.err.println(
"Profile "+glps+
" n/a");
189 public static void main(
final String args[])
throws IOException {
191 org.junit.runner.JUnitCore.
main(tstname);
static NativeWindowVersion getInstance()
static NewtVersion getInstance()
abstract AbstractGraphicsDevice getDefaultDevice()
Retrieve the default device connection, unit ID and unique ID name.
static GLDrawableFactory getFactory(final GLProfile glProfile)
Returns the sole GLDrawableFactory instance.
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 JoglVersion getInstance()
static StringBuilder getDefaultOpenGLInfo(AbstractGraphicsDevice device, StringBuilder sb, final boolean withCapabilitiesInfo)
void test34GLProfileGL2GL3()
static void main(final String args[])
void test31GLProfileGL2ES1()
void test22GLProfileMaxFixedFunc()
void test32GLProfileGL2ES2()
void test33GLProfileGL4ES3()
void test01GLProfileDefault()
void test11GLProfileMaxProgrammable()