Region renderer
All OpenGL related operations regarding Regions
are passed through an instance of this class.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| protected static final boolean | |
| protected static final boolean | |
| public static final RegionRenderer. | defaultBlendDisable
Default |
| public static final RegionRenderer. | defaultBlendEnable
Default |
| private final RegionRenderer. | |
| private final RegionRenderer. | |
| private static final String | |
| private static final String | |
| private static String | |
| private static String | |
| private static String | |
| private static String | |
| private static String | |
| private static final int | |
| private boolean | |
| private final RenderState | |
| private static final String | |
| private static final String | |
| private final IntObjectHashMap | |
| private static final int | |
| private boolean | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected | RegionRenderer(final RenderState
the used rs, final RegionRenderer.RenderState
|
| Modifier and Type | Method and Description |
|---|---|
| public static RegionRenderer | Returns: an instance of Region Rendererthe used rs, final RegionRenderer.RenderStateCreate a Hardware accelerated Region Renderer. |
| public final void | |
| public final void | enable(final GL2ES2 gl, final boolean enable)
Enabling or disabling the |
| private final String | |
| public final int | |
| public final PMVMatrix | |
| public final RenderState | |
| private String | |
| public final int | |
| public final void | |
| public final boolean | |
| public final boolean | |
| public final void | |
| public final void | |
| public final void | reshapePerspective(final float angle, final int width, final int height, final float near, final float far)
|
| public final boolean | Returns: true if a new shader program is being used and hence external uniform-data and -location, as well as the attribute-location must be updated, otherwise false.
|
| DEBUG | back to summary |
|---|---|
| protected static final boolean DEBUG | |
| DEBUG_INSTANCE | back to summary |
|---|---|
| protected static final boolean DEBUG_INSTANCE | |
| defaultBlendDisable | back to summary |
|---|---|
| public static final RegionRenderer. Default
Implementation also clears | |
| defaultBlendEnable | back to summary |
|---|---|
| public static final RegionRenderer. Default
Implementation also sets | |
| disableCallback | back to summary |
|---|---|
| private final RegionRenderer. | |
| enableCallback | back to summary |
|---|---|
| private final RegionRenderer. | |
| es2_precision_fp | back to summary |
|---|---|
| private static final String es2_precision_fp | |
| gcuTexture2D | back to summary |
|---|---|
| private static final String gcuTexture2D | |
| GLSL_CONST_SAMPLE_COUNT | back to summary |
|---|---|
| private static String GLSL_CONST_SAMPLE_COUNT | |
| GLSL_DEF_SAMPLE_COUNT | back to summary |
|---|---|
| private static String GLSL_DEF_SAMPLE_COUNT | |
| GLSL_MAIN_BEGIN | back to summary |
|---|---|
| private static String GLSL_MAIN_BEGIN | |
| GLSL_USE_COLOR_CHANNEL | back to summary |
|---|---|
| private static String GLSL_USE_COLOR_CHANNEL | |
| GLSL_USE_COLOR_TEXTURE | back to summary |
|---|---|
| private static String GLSL_USE_COLOR_TEXTURE | |
| HIGH_MASK | back to summary |
|---|---|
| private static final int HIGH_MASK | |
| initialized | back to summary |
|---|---|
| private boolean initialized | |
| rs | back to summary |
|---|---|
| private final RenderState rs | |
| SHADER_BIN_SUB | back to summary |
|---|---|
| private static final String SHADER_BIN_SUB | |
| SHADER_SRC_SUB | back to summary |
|---|---|
| private static final String SHADER_SRC_SUB | |
| shaderPrograms | back to summary |
|---|---|
| private final IntObjectHashMap shaderPrograms | |
| TWO_PASS_BIT | back to summary |
|---|---|
| private static final int TWO_PASS_BIT | |
| vboSupported | back to summary |
|---|---|
| private boolean vboSupported | |
| vp_height | back to summary |
|---|---|
| private int vp_height | |
| vp_width | back to summary |
|---|---|
| private int vp_width | |
| RegionRenderer | back to summary |
|---|---|
protected RegionRenderer(final RenderState rs, final RegionRenderer.
| |
| create | back to summary |
|---|---|
| public static RegionRenderer create(final RenderState rs, final RegionRenderer. Create a Hardware accelerated Region Renderer.
The optional
| |
| destroy | back to summary |
|---|---|
| public final void destroy(final GL2ES2 gl) | |
| enable | back to summary |
|---|---|
| public final void enable(final GL2ES2 gl, final boolean enable) Enabling or disabling the
In case enable and disable | |
| getFragmentShaderPrecision | back to summary |
|---|---|
| private final String getFragmentShaderPrecision(final GL2ES2 gl) | |
| getHeight | back to summary |
|---|---|
| public final int getHeight() Return height of current viewport | |
| getMatrix | back to summary |
|---|---|
| public final PMVMatrix getMatrix() | |
| getRenderState | back to summary |
|---|---|
| public final RenderState getRenderState() | |
| getVersionedShaderName | back to summary |
|---|---|
| private String getVersionedShaderName() | |
| getWidth | back to summary |
|---|---|
| public final int getWidth() Return width of current viewport | |
| init | back to summary |
|---|---|
| public final void init(final GL2ES2 gl, final int renderModes) throws GLException Initialize shader and bindings for GPU based rendering bound to the given GL object's GLContext if not initialized yet. Leaves the renderer enabled, ie ShaderState. Shall be called by a
| |
| isInitialized | back to summary |
|---|---|
| public final boolean isInitialized() | |
| isVBOSupported | back to summary |
|---|---|
| public final boolean isVBOSupported() | |
| reshapeNotify | back to summary |
|---|---|
| public final void reshapeNotify(final int width, final int height) No PMVMatrix operation is performed here. PMVMatrix is marked dirty. | |
| reshapeOrtho | back to summary |
|---|---|
| public final void reshapeOrtho(final int width, final int height, final float near, final float far) | |
| reshapePerspective | back to summary |
|---|---|
| public final void reshapePerspective(final float angle, final int width, final int height, final float near, final float far) | |
| useShaderProgram | back to summary |
|---|---|
public final boolean useShaderProgram(final GL2ES2 gl, final int renderModes, final boolean pass1, final int quality, final int sampleCount, final TextureSequence colorTexSeq)
| |
RegionRenderer ctor,
e.g.
| Modifier and Type | Method and Description |
|---|---|
| public void |
| run | back to summary |
|---|---|
public void run(GL gl, RegionRenderer renderer)
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final RegionRenderer. | PASS1_SIMPLE
Pass-1: Curve Simple |
| public static final RegionRenderer. | PASS1_WEIGHT
Pass-1: Curve Varying Weight |
| public static final RegionRenderer. | PASS2_MSAA
Pass-2: MSAA |
| public static final RegionRenderer. | PASS2_VBAA_QUAL0_SAMPLES1
Pass-2: VBAA Flipquad3, 1 sample |
| public static final RegionRenderer. | PASS2_VBAA_QUAL0_SAMPLES2
Pass-2: VBAA Flipquad3, 2 samples |
| public static final RegionRenderer. | PASS2_VBAA_QUAL0_SAMPLES4
Pass-2: VBAA Flipquad3, 4 samples |
| public static final RegionRenderer. | PASS2_VBAA_QUAL0_SAMPLES8
Pass-2: VBAA Flipquad3, 8 samples |
| public static final RegionRenderer. | PASS2_VBAA_QUAL1_SAMPLES1
Pass-2: VBAA Brute-Force, Odd, 1 samples |
| public static final RegionRenderer. | PASS2_VBAA_QUAL1_SAMPLES2
Pass-2: VBAA Brute-Force, Even, 2 samples |
| public static final RegionRenderer. | PASS2_VBAA_QUAL1_SAMPLES3
Pass-2: VBAA Brute-Force, Odd, 3 samples |
| public static final RegionRenderer. | PASS2_VBAA_QUAL1_SAMPLES4
Pass-2: VBAA Brute-Force, Even, 4 samples |
| public static final RegionRenderer. | PASS2_VBAA_QUAL1_SAMPLES5
Pass-2: VBAA Brute-Force, Odd, 5 samples |
| public static final RegionRenderer. | PASS2_VBAA_QUAL1_SAMPLES6
Pass-2: VBAA Brute-Force, Even, 6 samples |
| public static final RegionRenderer. | PASS2_VBAA_QUAL1_SAMPLES7
Pass-2: VBAA Brute-Force, Odd, 7 samples |
| public static final RegionRenderer. | PASS2_VBAA_QUAL1_SAMPLES8
Pass-2: VBAA Brute-Force, Even, 8 samples |
| public final int | |
| public final String | |
| public final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static RegionRenderer. | |
| public static RegionRenderer. | |
| public static RegionRenderer. | |
| public static RegionRenderer. |
| PASS1_SIMPLE | back to summary |
|---|---|
| public static final RegionRenderer. Pass-1: Curve Simple | |
| PASS1_WEIGHT | back to summary |
|---|---|
| public static final RegionRenderer. Pass-1: Curve Varying Weight | |
| PASS2_MSAA | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: MSAA | |
| PASS2_VBAA_QUAL0_SAMPLES1 | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: VBAA Flipquad3, 1 sample | |
| PASS2_VBAA_QUAL0_SAMPLES2 | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: VBAA Flipquad3, 2 samples | |
| PASS2_VBAA_QUAL0_SAMPLES4 | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: VBAA Flipquad3, 4 samples | |
| PASS2_VBAA_QUAL0_SAMPLES8 | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: VBAA Flipquad3, 8 samples | |
| PASS2_VBAA_QUAL1_SAMPLES1 | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: VBAA Brute-Force, Odd, 1 samples | |
| PASS2_VBAA_QUAL1_SAMPLES2 | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: VBAA Brute-Force, Even, 2 samples | |
| PASS2_VBAA_QUAL1_SAMPLES3 | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: VBAA Brute-Force, Odd, 3 samples | |
| PASS2_VBAA_QUAL1_SAMPLES4 | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: VBAA Brute-Force, Even, 4 samples | |
| PASS2_VBAA_QUAL1_SAMPLES5 | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: VBAA Brute-Force, Odd, 5 samples | |
| PASS2_VBAA_QUAL1_SAMPLES6 | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: VBAA Brute-Force, Even, 6 samples | |
| PASS2_VBAA_QUAL1_SAMPLES7 | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: VBAA Brute-Force, Odd, 7 samples | |
| PASS2_VBAA_QUAL1_SAMPLES8 | back to summary |
|---|---|
| public static final RegionRenderer. Pass-2: VBAA Brute-Force, Even, 8 samples | |
| sampleCount | back to summary |
|---|---|
| public final int sampleCount | |
| sub | back to summary |
|---|---|
| public final String sub | |
| tech | back to summary |
|---|---|
| public final String tech | |
| ShaderModeSelector1 | back to summary |
|---|---|
| private ShaderModeSelector1(final String tech, final String sub, final int sampleCount) | |
| selectPass1 | back to summary |
|---|---|
| public static RegionRenderer. | |
| selectPass2 | back to summary |
|---|---|
| public static RegionRenderer. | |
| valueOf | back to summary |
|---|---|
| public static RegionRenderer. | |
| values | back to summary |
|---|---|
| public static RegionRenderer. | |