29package com.jogamp.opengl.test.junit.jogl.acore;
31import java.util.Collections;
32import java.util.SortedSet;
33import java.util.TreeSet;
35import com.jogamp.opengl.GL;
36import com.jogamp.opengl.GLCapabilities;
37import com.jogamp.opengl.GLContext;
38import com.jogamp.opengl.GLDrawableFactory;
39import com.jogamp.opengl.GLOffscreenAutoDrawable;
40import com.jogamp.opengl.GLProfile;
43import org.junit.FixMethodOrder;
44import org.junit.runners.MethodSorters;
46@FixMethodOrder(MethodSorters.NAME_ASCENDING)
49 public static void main(
final String[] args) {
68 final String[] tabExtensions = extensions.split(
" ");
69 final SortedSet<String> setExtensions =
new TreeSet<String>();
70 Collections.addAll(setExtensions, tabExtensions);
71 System.out.println(
"DefaultContext: "+context);
72 System.out.println(
"DefaultContext: "+setExtensions);
Specifies a set of OpenGL capabilities.
final GLProfile getGLProfile()
Returns the GL profile you desire or used by the drawable.
Abstraction for an OpenGL rendering context.
abstract int makeCurrent()
Makes this GLContext current on the calling thread.
abstract void release()
Releases control of this GLContext from the current thread.
abstract GL getGL()
Returns the GL pipeline object for this GLContext.
abstract GLOffscreenAutoDrawable createOffscreenAutoDrawable(AbstractGraphicsDevice device, GLCapabilitiesImmutable caps, GLCapabilitiesChooser chooser, int width, int height)
Creates a realized GLOffscreenAutoDrawable incl it's offscreen NativeSurface with the given capabilit...
static GLDrawableFactory getFactory(final GLProfile glProfile)
Returns the sole GLDrawableFactory instance.
Specifies the the OpenGL profile.
static GLProfile getDefault(final AbstractGraphicsDevice device)
Returns a default GLProfile object, reflecting the best for the running platform.
void testJogl2ExtensionCheck()
static void main(final String[] args)
GLContext getContext()
Returns the context associated with this drawable.
Platform-independent GLAutoDrawable specialization, exposing offscreen functionality.
static final int GL_EXTENSIONS
GL_ES_VERSION_2_0, GL_VERSION_1_1, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_EXTENSIONS" with expr...
String glGetString(int name)
Entry point to C language function: const GLubyte * {@native glGetString}(GLenum name) Part of GL_...