Top Fields Constructors Methods
jogamp.graph.curve.opengl

public Class VBORegionSPES2

extends GLRegion
Class Inheritance
Imports
java.nio.FloatBuffer, com.jogamp.opengl.GL, .GL2ES2, .GLUniformData, jogamp.graph.curve.opengl.shader.AttributeNames, .UniformNames, com.jogamp.graph.curve.Region, com.jogamp.graph.curve.opengl.GLRegion, .RegionRenderer, .RenderState, com.jogamp.opengl.util.GLArrayDataServer, com.jogamp.opengl.util.glsl.ShaderProgram, com.jogamp.opengl.util.texture.Texture, .TextureCoords, .TextureSequence

Field Summary

Modifier and TypeField and Description
private final float[]
private GLArrayDataServer
private GLArrayDataServer
private GLArrayDataServer
private final GLUniformData
private final GLUniformData
private GLArrayDataServer
private final RenderState.ProgramLocal
private ShaderProgram
private static final boolean
Inherited from com.jogamp.graph.curve.opengl.GLRegion:
colorTexSeq

Constructor Summary

AccessConstructor and Description
public
VBORegionSPES2(final int renderModes, final TextureSequence colorTexSeq)

Method Summary

Modifier and TypeMethod and Description
protected final void
protected void
protected void
drawImpl(final GL2ES2 gl, final RegionRenderer renderer, final int[] sampleCount)

Implements abstract com.jogamp.graph.curve.opengl.GLRegion.drawImpl.

protected final void
pushIndex(final int idx)

Implements abstract com.jogamp.graph.curve.Region.pushIndex.

protected final void
pushVertex(final float[] coords, final float[] texParams, final float[] rgba)

Implements abstract com.jogamp.graph.curve.Region.pushVertex.

protected void
updateImpl(final GL2ES2 gl)

Implements abstract com.jogamp.graph.curve.opengl.GLRegion.updateImpl.

Updates a graph region by updating the ogl related objects for use in rendering if isShapeDirty().
public void
useShaderProgram(final GL2ES2 gl, final RegionRenderer renderer, final int renderModes, final int quality)

Since multiple Regions may share one ShaderProgram, the uniform data must always be updated.

Inherited from com.jogamp.graph.curve.opengl.GLRegion:
clearcreatedestroydraw

Field Detail

colorTexBBoxback to summary
private final float[] colorTexBBox
gca_ColorsAttrback to summary
private GLArrayDataServer gca_ColorsAttr
gca_CurveParamsAttrback to summary
private GLArrayDataServer gca_CurveParamsAttr
gca_VerticesAttrback to summary
private GLArrayDataServer gca_VerticesAttr
gcu_ColorTexBBoxback to summary
private final GLUniformData gcu_ColorTexBBox
gcu_ColorTexUnitback to summary
private final GLUniformData gcu_ColorTexUnit
indicesBufferback to summary
private GLArrayDataServer indicesBuffer
rsLocalback to summary
private final RenderState.ProgramLocal rsLocal
spPass1back to summary
private ShaderProgram spPass1
throwOnErrorback to summary
private static final boolean throwOnError

Constructor Detail

VBORegionSPES2back to summary
public VBORegionSPES2(final int renderModes, final TextureSequence colorTexSeq)

Method Detail

clearImplback to summary
protected final void clearImpl(final GL2ES2 gl)

Implements abstract com.jogamp.graph.curve.opengl.GLRegion.clearImpl.

Annotations
@Override
destroyImplback to summary
protected void destroyImpl(final GL2ES2 gl)

Implements abstract com.jogamp.graph.curve.opengl.GLRegion.destroyImpl.

Annotations
@Override
drawImplback to summary
protected void drawImpl(final GL2ES2 gl, final RegionRenderer renderer, final int[] sampleCount)

Implements abstract com.jogamp.graph.curve.opengl.GLRegion.drawImpl.

Annotations
@Override
pushIndexback to summary
protected final void pushIndex(final int idx)

Implements abstract com.jogamp.graph.curve.Region.pushIndex.

Annotations
@Override
pushVertexback to summary
protected final void pushVertex(final float[] coords, final float[] texParams, final float[] rgba)

Implements abstract com.jogamp.graph.curve.Region.pushVertex.

Annotations
@Override
updateImplback to summary
protected void updateImpl(final GL2ES2 gl)

Implements abstract com.jogamp.graph.curve.opengl.GLRegion.updateImpl.

Doc from com.jogamp.graph.curve.opengl.GLRegion.updateImpl.

Updates a graph region by updating the ogl related objects for use in rendering if isShapeDirty().

Allocates the ogl related data and initializes it the 1st time.

Called by draw(GL2ES2, RenderState, int, int, int).

Annotations
@Override
useShaderProgramback to summary
public void useShaderProgram(final GL2ES2 gl, final RegionRenderer renderer, final int renderModes, final int quality)

Since multiple Regions may share one ShaderProgram, the uniform data must always be updated.