|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Classes | |
| class | VBOSet |
Public Member Functions | |
| void | destroy (final GL gl) |
| void | reset () |
| void | reset (final GL gl) |
| String | toString () |
| void | draw (final GL gl, final boolean disableBufferAfterDraw) |
| void | draw (final GL gl, final Buffer indices, final boolean disableBufferAfterDraw) |
| void | glBegin (int mode) |
| final void | glEnd (final GL gl) |
| void | glEnd (final GL gl, final boolean immediateDraw) |
| final void | glEnd (final GL gl, final Buffer indices) |
| void | glVertexv (final Buffer v) |
| void | glNormalv (final Buffer v) |
| void | glColorv (final Buffer v) |
| void | glTexCoordv (final Buffer v) |
| final void | glVertex2f (final float x, final float y) |
| final void | glVertex3f (final float x, final float y, final float z) |
| final void | glNormal3f (final float x, final float y, final float z) |
| final void | glColor3f (final float x, final float y, final float z) |
| final void | glColor4f (final float x, final float y, final float z, final float a) |
| final void | glTexCoord2f (final float x, final float y) |
| final void | glTexCoord3f (final float x, final float y, final float z) |
| final void | glVertex2s (final short x, final short y) |
| final void | glVertex3s (final short x, final short y, final short z) |
| final void | glNormal3s (final short x, final short y, final short z) |
| final void | glColor3s (final short x, final short y, final short z) |
| final void | glColor4s (final short x, final short y, final short z, final short a) |
| final void | glTexCoord2s (final short x, final short y) |
| final void | glTexCoord3s (final short x, final short y, final short z) |
| final void | glVertex2b (final byte x, final byte y) |
| final void | glVertex3b (final byte x, final byte y, final byte z) |
| final void | glNormal3b (final byte x, final byte y, final byte z) |
| final void | glColor3b (final byte x, final byte y, final byte z) |
| final void | glColor3ub (final byte x, final byte y, final byte z) |
| final void | glColor4b (final byte x, final byte y, final byte z, final byte a) |
| final void | glColor4ub (final byte x, final byte y, final byte z, final byte a) |
| final void | glTexCoord2b (final byte x, final byte y) |
| final void | glTexCoord3b (final byte x, final byte y, final byte z) |
| boolean | getUseVBO () |
| int | getResizeElementCount () |
| Returns the additional element count if buffer resize is required. More... | |
| void | setResizeElementCount (final int v) |
Sets the additional element count if buffer resize is required, defaults to initialElementCount of factory method. More... | |
Static Public Member Functions | |
| static ImmModeSink | createFixed (final int initialElementCount, final int vComps, final int vDataType, final int cComps, final int cDataType, final int nComps, final int nDataType, final int tComps, final int tDataType, final int glBufferUsage) |
| Uses a GL2ES1, or ES2 fixed function emulation immediate mode sink. More... | |
| static ImmModeSink | createGLSL (final int initialElementCount, final int vComps, final int vDataType, final int cComps, final int cDataType, final int nComps, final int nDataType, final int tComps, final int tDataType, final int glBufferUsage, final ShaderState st) |
| Uses a GL2ES2 GLSL shader immediate mode sink, utilizing the given ShaderState. More... | |
| static ImmModeSink | createGLSL (final int initialElementCount, final int vComps, final int vDataType, final int cComps, final int cDataType, final int nComps, final int nDataType, final int tComps, final int tDataType, final int glBufferUsage, final int shaderProgram) |
| Uses a GL2ES2 GLSL shader immediate mode sink, utilizing the given shader-program. More... | |
Static Public Attributes | |
| static final int | GL_QUADS = 0x0007 |
| static final int | GL_QUAD_STRIP = 0x0008 |
| static final int | GL_POLYGON = 0x0009 |
Protected Member Functions | |
| ImmModeSink (final int initialElementCount, final int vComps, final int vDataType, final int cComps, final int cDataType, final int nComps, final int nDataType, final int tComps, final int tDataType, final boolean useGLSL, final int glBufferUsage, final ShaderState st, final int shaderProgram) | |
Static Protected Attributes | |
| static final boolean | DEBUG_BEGIN_END |
| static final boolean | DEBUG_DRAW |
| static final boolean | DEBUG_BUFFER |
Immediate mode sink, implementing OpenGL fixed function subset of immediate mode operations, i.e.
glBegin(); glVertex3f(1f, 1f, 1f); glColor4f(1f, 1f, 1f, 1f); ... glEnd();
Implementation buffers all vertex, colors, normal and texture-coord elements in their respective buffers to be either rendered directly via glEnd(GL) or to be added to an internal display list via glEnd(gl, false) for deferred rendering via draw(GL, boolean).
If unsure whether colors, normals and textures will be used, simply add them with an expected component count. This implementation will only render buffers which are being filled.
The buffer growing implementation will only grow the exceeded buffers, unused buffers are not resized.
Note: Optional types, i.e. color, must be either not used or used w/ the same element count as vertex, etc. This is a semantic constraint, same as in the original OpenGL spec.
Definition at line 52 of file ImmModeSink.java.
|
protected |
|
static |
Uses a GL2ES1, or ES2 fixed function emulation immediate mode sink.
| initialElementCount | initial buffer size, if subsequent mutable operations are about to exceed the buffer size, the buffer will grow about the initial size. |
| vComps | mandatory vertex component count, should be 2, 3 or 4. |
| vDataType | mandatory vertex data type, e.g. GL#GL_FLOAT |
| cComps | optional color component count, may be 0, 3 or 4 |
| cDataType | optional color data type, e.g. GL#GL_FLOAT |
| nComps | optional normal component count, may be 0, 3 or 4 |
| nDataType | optional normal data type, e.g. GL#GL_FLOAT |
| tComps | optional texture-coordinate component count, may be 0, 2 or 3 |
| tDataType | optional texture-coordinate data type, e.g. GL#GL_FLOAT |
| glBufferUsage | VBO usage parameter for GL#glBufferData(int, long, Buffer, int), e.g. GL#GL_STATIC_DRAW, set to 0 for no VBO usage |
Definition at line 86 of file ImmModeSink.java.
|
static |
Uses a GL2ES2 GLSL shader immediate mode sink, utilizing the given shader-program.
| initialElementCount | initial buffer size, if subsequent mutable operations are about to exceed the buffer size, the buffer will grow about the initial size. |
| vComps | mandatory vertex component count, should be 2, 3 or 4. |
| vDataType | mandatory vertex data type, e.g. GL#GL_FLOAT |
| cComps | optional color component count, may be 0, 3 or 4 |
| cDataType | optional color data type, e.g. GL#GL_FLOAT |
| nComps | optional normal component count, may be 0, 3 or 4 |
| nDataType | optional normal data type, e.g. GL#GL_FLOAT |
| tComps | optional texture-coordinate component count, may be 0, 2 or 3 |
| tDataType | optional texture-coordinate data type, e.g. GL#GL_FLOAT |
| glBufferUsage | VBO usage parameter for GL#glBufferData(int, long, Buffer, int), e.g. GL#GL_STATIC_DRAW, set to 0 for no VBO usage |
| shaderProgram | shader-program name to locate the vertex attributes |
Definition at line 152 of file ImmModeSink.java.
|
static |
Uses a GL2ES2 GLSL shader immediate mode sink, utilizing the given ShaderState.
| initialElementCount | initial buffer size, if subsequent mutable operations are about to exceed the buffer size, the buffer will grow about the initial size. |
| vComps | mandatory vertex component count, should be 2, 3 or 4. |
| vDataType | mandatory vertex data type, e.g. GL#GL_FLOAT |
| cComps | optional color component count, may be 0, 3 or 4 |
| cDataType | optional color data type, e.g. GL#GL_FLOAT |
| nComps | optional normal component count, may be 0, 3 or 4 |
| nDataType | optional normal data type, e.g. GL#GL_FLOAT |
| tComps | optional texture-coordinate component count, may be 0, 2 or 3 |
| tDataType | optional texture-coordinate data type, e.g. GL#GL_FLOAT |
| glBufferUsage | VBO usage parameter for GL#glBufferData(int, long, Buffer, int), e.g. GL#GL_STATIC_DRAW, set to 0 for no VBO usage |
| st | ShaderState to locate the vertex attributes |
Definition at line 119 of file ImmModeSink.java.
| void com.jogamp.opengl.util.ImmModeSink.destroy | ( | final GL | gl | ) |
Definition at line 163 of file ImmModeSink.java.
| void com.jogamp.opengl.util.ImmModeSink.draw | ( | final GL | gl, |
| final boolean | disableBufferAfterDraw | ||
| ) |
| void com.jogamp.opengl.util.ImmModeSink.draw | ( | final GL | gl, |
| final Buffer | indices, | ||
| final boolean | disableBufferAfterDraw | ||
| ) |
Definition at line 206 of file ImmModeSink.java.
| int com.jogamp.opengl.util.ImmModeSink.getResizeElementCount | ( | ) |
Returns the additional element count if buffer resize is required.
Definition at line 387 of file ImmModeSink.java.
| boolean com.jogamp.opengl.util.ImmModeSink.getUseVBO | ( | ) |
| void com.jogamp.opengl.util.ImmModeSink.glBegin | ( | int | mode | ) |
Definition at line 216 of file ImmModeSink.java.
| final void com.jogamp.opengl.util.ImmModeSink.glColor3b | ( | final byte | x, |
| final byte | y, | ||
| final byte | z | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glColor3f | ( | final float | x, |
| final float | y, | ||
| final float | z | ||
| ) |
Definition at line 289 of file ImmModeSink.java.
| final void com.jogamp.opengl.util.ImmModeSink.glColor3s | ( | final short | x, |
| final short | y, | ||
| final short | z | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glColor3ub | ( | final byte | x, |
| final byte | y, | ||
| final byte | z | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glColor4b | ( | final byte | x, |
| final byte | y, | ||
| final byte | z, | ||
| final byte | a | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glColor4f | ( | final float | x, |
| final float | y, | ||
| final float | z, | ||
| final float | a | ||
| ) |
Definition at line 293 of file ImmModeSink.java.
| final void com.jogamp.opengl.util.ImmModeSink.glColor4s | ( | final short | x, |
| final short | y, | ||
| final short | z, | ||
| final short | a | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glColor4ub | ( | final byte | x, |
| final byte | y, | ||
| final byte | z, | ||
| final byte | a | ||
| ) |
| void com.jogamp.opengl.util.ImmModeSink.glColorv | ( | final Buffer | v | ) |
| final void com.jogamp.opengl.util.ImmModeSink.glEnd | ( | final GL | gl | ) |
Definition at line 233 of file ImmModeSink.java.
| void com.jogamp.opengl.util.ImmModeSink.glEnd | ( | final GL | gl, |
| final boolean | immediateDraw | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glEnd | ( | final GL | gl, |
| final Buffer | indices | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glNormal3b | ( | final byte | x, |
| final byte | y, | ||
| final byte | z | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glNormal3f | ( | final float | x, |
| final float | y, | ||
| final float | z | ||
| ) |
Definition at line 285 of file ImmModeSink.java.
| final void com.jogamp.opengl.util.ImmModeSink.glNormal3s | ( | final short | x, |
| final short | y, | ||
| final short | z | ||
| ) |
| void com.jogamp.opengl.util.ImmModeSink.glNormalv | ( | final Buffer | v | ) |
| final void com.jogamp.opengl.util.ImmModeSink.glTexCoord2b | ( | final byte | x, |
| final byte | y | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glTexCoord2f | ( | final float | x, |
| final float | y | ||
| ) |
Definition at line 297 of file ImmModeSink.java.
| final void com.jogamp.opengl.util.ImmModeSink.glTexCoord2s | ( | final short | x, |
| final short | y | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glTexCoord3b | ( | final byte | x, |
| final byte | y, | ||
| final byte | z | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glTexCoord3f | ( | final float | x, |
| final float | y, | ||
| final float | z | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glTexCoord3s | ( | final short | x, |
| final short | y, | ||
| final short | z | ||
| ) |
| void com.jogamp.opengl.util.ImmModeSink.glTexCoordv | ( | final Buffer | v | ) |
| final void com.jogamp.opengl.util.ImmModeSink.glVertex2b | ( | final byte | x, |
| final byte | y | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glVertex2f | ( | final float | x, |
| final float | y | ||
| ) |
Definition at line 277 of file ImmModeSink.java.
| final void com.jogamp.opengl.util.ImmModeSink.glVertex2s | ( | final short | x, |
| final short | y | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glVertex3b | ( | final byte | x, |
| final byte | y, | ||
| final byte | z | ||
| ) |
| final void com.jogamp.opengl.util.ImmModeSink.glVertex3f | ( | final float | x, |
| final float | y, | ||
| final float | z | ||
| ) |
Definition at line 281 of file ImmModeSink.java.
| final void com.jogamp.opengl.util.ImmModeSink.glVertex3s | ( | final short | x, |
| final short | y, | ||
| final short | z | ||
| ) |
| void com.jogamp.opengl.util.ImmModeSink.glVertexv | ( | final Buffer | v | ) |
| void com.jogamp.opengl.util.ImmModeSink.reset | ( | ) |
Definition at line 169 of file ImmModeSink.java.
| void com.jogamp.opengl.util.ImmModeSink.reset | ( | final GL | gl | ) |
| void com.jogamp.opengl.util.ImmModeSink.setResizeElementCount | ( | final int | v | ) |
Sets the additional element count if buffer resize is required, defaults to initialElementCount of factory method.
Definition at line 395 of file ImmModeSink.java.
| String com.jogamp.opengl.util.ImmModeSink.toString | ( | ) |
Definition at line 179 of file ImmModeSink.java.
|
staticprotected |
Definition at line 53 of file ImmModeSink.java.
|
staticprotected |
Definition at line 55 of file ImmModeSink.java.
|
staticprotected |
Definition at line 54 of file ImmModeSink.java.
|
static |
Definition at line 66 of file ImmModeSink.java.
|
static |
Definition at line 65 of file ImmModeSink.java.
|
static |
Definition at line 64 of file ImmModeSink.java.