28package com.jogamp.opengl.test.junit.graph;
30import com.jogamp.opengl.GL;
31import com.jogamp.opengl.GL2ES2;
32import com.jogamp.opengl.GL2GL3;
33import com.jogamp.opengl.GLAutoDrawable;
34import com.jogamp.opengl.GLCapabilitiesImmutable;
38 boolean isEnabled =
false;
43 System.err.println(
"glIsEnabled(0x"+Integer.toHexString(name)+
") -> error 0x"+Integer.toHexString(glerr));
45 }
catch (
final Exception e) {
46 System.err.println(
"Caught exception: "+e.getMessage());
52 final float[] vf =
new float[] { 0f };
53 final byte[] vb =
new byte[] { 0 };
54 final int[] vi =
new int[] { 0, 0 };
56 System.out.println(
"GL MSAA SETUP:");
59 System.out.println(
" Caps realised "+caps);
67 System.out.println(
" GL SAMPLE_BUFFERS "+vi[0]+
", SAMPLES "+vi[1]);
69 System.out.println(
"GL CSAA SETUP:");
80 ": SAMPLE_COVERAGE_VALUE "+vf[0]+
81 ", SAMPLE_COVERAGE_INVERT "+vb[0]);
85 final int[] vi =
new int[] { 0, 0, 0, 0 };
90 final boolean blendEnabled = vi[0] ==
GL.
GL_TRUE;
92 " GL_SRC_ALPHA 0x"+Integer.toHexString(vi[1])+
93 " GL_SRC_RGB 0x"+Integer.toHexString(vi[2])+
94 " GL_DST_RGB 0x"+Integer.toHexString(vi[3]));
A higher-level abstraction than GLDrawable which supplies an event based mechanism (GLEventListener) ...
GL getGL()
Returns the GL pipeline object this GLAutoDrawable uses.
GL2ES2 getGL2ES2()
Casts this object to the GL2ES2 interface.
Specifies an immutable set of OpenGL capabilities.
boolean getSampleBuffers()
Returns whether sample buffers for full-scene antialiasing (FSAA) should be allocated for this drawab...
int getNumSamples()
Returns the number of sample buffers to be allocated if sample buffers are enabled,...
GLCapabilitiesImmutable getChosenGLCapabilities()
Fetches the GLCapabilitiesImmutable corresponding to the chosen OpenGL capabilities (pixel format / v...
void glGetFloatv(int pname, FloatBuffer data)
Entry point to C language function: void {@native glGetFloatv}(GLenum pname, GLfloat * data) Part ...
void glGetIntegerv(int pname, IntBuffer data)
Entry point to C language function: void {@native glGetIntegerv}(GLenum pname, GLint * data) Part ...
static final int GL_MULTISAMPLE
Common in ES1, GL2 and GL3.
static final int GL_SAMPLE_BUFFERS
GL_ES_VERSION_2_0, GL_VERSION_1_3, GL_VERSION_ES_1_0, GL_3DFX_multisample, GL_ARB_multisample,...
void glGetBooleanv(int pname, ByteBuffer data)
Entry point to C language function: void {@native glGetBooleanv}(GLenum pname, GLboolean * data) P...
static final int GL_BLEND_SRC_ALPHA
GL_ES_VERSION_2_0, GL_VERSION_1_4, GL_OES_blend_func_separate, GL_EXT_blend_func_separate Alias for: ...
boolean glIsEnabled(int cap)
Entry point to C language function: GLboolean {@native glIsEnabled}(GLenum cap) Part of GL_NV_vert...
static final int GL_SAMPLE_COVERAGE_INVERT
GL_ES_VERSION_2_0, GL_VERSION_1_3, GL_VERSION_ES_1_0, GL_ARB_multisample Alias for: GL_SAMPLE_COVERAG...
static final int GL_SAMPLE_COVERAGE
GL_ES_VERSION_2_0, GL_VERSION_1_3, GL_VERSION_ES_1_0, GL_ARB_multisample Alias for: GL_SAMPLE_COVERAG...
static final int GL_BLEND_SRC_RGB
GL_ES_VERSION_2_0, GL_VERSION_1_4, GL_EXT_blend_func_separate, GL_OES_blend_func_separate Alias for: ...
static final int GL_NO_ERROR
GL_ES_VERSION_2_0, GL_VERSION_1_1, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_NO_ERROR" with expres...
int glGetError()
Entry point to C language function: GLenum {@native glGetError}() Part of GL_ES_VERSION_2_0,...
static final int GL_BLEND_DST_RGB
GL_ES_VERSION_2_0, GL_VERSION_1_4, GL_EXT_blend_func_separate, GL_OES_blend_func_separate Alias for: ...
static final int GL_SAMPLES
GL_ES_VERSION_2_0, GL_VERSION_1_3, GL_VERSION_ES_1_0, GL_3DFX_multisample, GL_ARB_multisample,...
static final int GL_SAMPLE_ALPHA_TO_ONE
Common in ES1, GL2 and GL3.
static final int GL_SAMPLE_ALPHA_TO_COVERAGE
GL_ES_VERSION_2_0, GL_VERSION_1_3, GL_VERSION_ES_1_0, GL_ARB_multisample Alias for: GL_SAMPLE_ALPHA_T...
static final int GL_SAMPLE_COVERAGE_VALUE
GL_ES_VERSION_2_0, GL_VERSION_1_3, GL_VERSION_ES_1_0, GL_ARB_multisample Alias for: GL_SAMPLE_COVERAG...
static final int GL_BLEND
GL_ES_VERSION_2_0, GL_VERSION_1_1, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_BLEND" with expressio...
static final int GL_TRUE
GL_ES_VERSION_2_0, GL_VERSION_1_1, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_TRUE" with expression...