28package com.jogamp.opengl.demos.util;
30import com.jogamp.graph.curve.Region;
31import com.jogamp.opengl.GLCapabilities;
32import com.jogamp.opengl.GLProfile;
74 this.surface_width = width;
75 this.surface_height = height;
81 public void parse(
final String[] args) {
82 final int[] idx = { 0 };
83 for (idx[0] = 0; idx[0] < args.length; ++idx[0]) {
87 public boolean parse(
final String[] args,
final int[] idx) {
88 if( 0 > idx[0] || idx[0] >= args.length ) {
92 if (args[idx[0]].equals(
"-hhd")) {
95 }
else if (args[idx[0]].equals(
"-fhd")) {
98 }
else if (args[idx[0]].equals(
"-w")) {
101 }
else if (args[idx[0]].equals(
"-h")) {
104 }
else if(args[idx[0]].equals(
"-es2")) {
106 }
else if(args[idx[0]].equals(
"-es3")) {
108 }
else if(args[idx[0]].equals(
"-gl2")) {
110 }
else if(args[idx[0]].equals(
"-gl3bc")) {
112 }
else if(args[idx[0]].equals(
"-gl3")) {
114 }
else if(args[idx[0]].equals(
"-gl4")) {
116 }
else if(args[idx[0]].equals(
"-gl4bc")) {
118 }
else if(args[idx[0]].equals(
"-gldef")) {
120 }
else if(args[idx[0]].equals(
"-gnone")) {
124 }
else if(args[idx[0]].equals(
"-color")) {
126 }
else if(args[idx[0]].equals(
"-no-color")) {
128 }
else if(args[idx[0]].equals(
"-smsaa")) {
133 }
else if(args[idx[0]].equals(
"-gmsaa")) {
139 }
else if(args[idx[0]].equals(
"-gvbaa")) {
145 }
else if(args[idx[0]].equals(
"-gaaq")) {
148 }
else if(args[idx[0]].equals(
"-exclusiveContext")) {
150 }
else if(args[idx[0]].equals(
"-wait")) {
152 }
else if (args[idx[0]].equals(
"-keep")) {
155 }
else if (args[idx[0]].equals(
"-stay")) {
157 }
else if (args[idx[0]].equals(
"-swapInterval")) {
160 }
else if (args[idx[0]].equals(
"-duration")) {
Abstract Outline shape representation define the method an OutlineShape(s) is bound and rendered.
static final int MSAA_RENDERING_BIT
Rendering-Mode bit for Region.
static final int clipAAQuality(final int v)
Returns clipped AA quality value to [Region#MIN_AA_QUALITY..Region#MAX_AA_QUALITY].
static final int DEFAULT_AA_QUALITY
Default pass2 AA-quality rendering {@value} for Graph Region AA render-modes: VBAA_RENDERING_BIT.
static final int COLORCHANNEL_RENDERING_BIT
Rendering-Mode bit for Region to optionally enable a color-channel per vertex.
static final int clipAASampleCount(final int v)
Returns clipped AA sample-count to [Region#MIN_AA_SAMPLE_COUNT..Region#MAX_AA_SAMPLE_COUNT].
static String getRenderModeString(final int renderModes)
Returns a unique technical description string for renderModes as follows:
static final int AA_RENDERING_MASK
2-pass rendering bit-mask including MSAA_RENDERING_BIT and VBAA_RENDERING_BIT.
static boolean isGraphAA(final int renderModes)
Returns true if given renderModes has any of Region#AA_RENDERING_MASK set.
static final int NORM_RENDERING_BIT
Rendering-Mode bit for Region.
static final int VBAA_RENDERING_BIT
Rendering-Mode bit for Region.
void setAlphaBits(final int alphaBits)
Sets the number of bits requested for the color buffer's alpha component.
Specifies a set of OpenGL capabilities.
void setNumSamples(final int numSamples)
If sample buffers are enabled, indicates the number of buffers to be allocated.
void setSampleBuffers(final boolean enable)
Defaults to false.
Specifies the the OpenGL profile.
static final String GLES3
The embedded OpenGL profile ES 3.x, with x >= 0.
static final String GL2ES2
The intersection of the desktop GL3, GL2 and embedded ES2 profile.
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 final String GL4bc
The desktop OpenGL compatibility profile 4.x, with x >= 0, ie GL2 plus GL4.
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 void initSingleton()
Static initialization of JOGL.
static final String GL4
The desktop OpenGL core profile 4.x, with x >= 0.
CommandlineOptions(final int width, final int height, final int renderModes, final int graphAAQuality, final int graphAASamples, final int sceneMSAASamples)
Commandline options.
GLCapabilities getGLCaps()
CommandlineOptions(final int width, final int height, final int renderModes)
Commandline options.
int graphAASamples
Sample count for Graph Region AA render-modes: Region#VBAA_RENDERING_BIT or Region#MSAA_RENDERING_BIT...
boolean parse(final String[] args, final int[] idx)
int graphAAQuality
Pass2 AA-quality rendering for Graph Region AA render-modes: VBAA_RENDERING_BIT.
void parse(final String[] args)
static int atoi(final String str, final int def)
static float atof(final String str, final float def)