| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | |
| public abstract static class | |
| public static interface | |
| public static class | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final IntIntMap | |
| public Camera | |
| private Attributes | |
| public RenderContext | |
| private Mesh | |
| private final IntArray | |
| private final IntIntMap | |
| private final IntArray | |
| private int[] | |
| public ShaderProgram | |
| private final Array | |
| private final IntArray | |
| private final IntArray | |
| private final Array | |
| private final Array |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | begin(Camera camera, RenderContext context)
Implements com. Initializes the context for exclusive rendering by this shader. |
| public void | dispose()
Implements com. Releases all resources of this object. |
| public void | end()
Implements com. Cleanup the context so other shaders can render. |
| private final int[] | |
| private final int[] | |
| public String | |
| public int | |
| public final boolean | has(final int inputID)
Whether this Shader instance implements the specified uniform, only valid after a call to init(). |
| public void | init(final ShaderProgram program, final Renderable renderable)
Initialize this shader, causing all registered uniforms/attributes to be fetched. |
| public final int | |
| public int | Returns: The ID of the uniform to use in this shader.Register an uniform which might be used by this shader. |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public void | render(Renderable renderable)
Implements com. Renders the |
| public void | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean |
| attributes | back to summary |
|---|---|
| private final IntIntMap attributes | |
| camera | back to summary |
|---|---|
| public Camera camera | |
| combinedAttributes | back to summary |
|---|---|
| private Attributes combinedAttributes | |
| context | back to summary |
|---|---|
| public RenderContext context | |
| currentMesh | back to summary |
|---|---|
| private Mesh currentMesh | |
| globalUniforms | back to summary |
|---|---|
| private final IntArray globalUniforms | |
| instancedAttributes | back to summary |
|---|---|
| private final IntIntMap instancedAttributes | |
| localUniforms | back to summary |
|---|---|
| private final IntArray localUniforms | |
| locations | back to summary |
|---|---|
| private int[] locations | |
| program | back to summary |
|---|---|
| public ShaderProgram program | |
| setters | back to summary |
|---|---|
| private final Array<BaseShader. | |
| tempArray | back to summary |
|---|---|
| private final IntArray tempArray | |
| tempArray2 | back to summary |
|---|---|
| private final IntArray tempArray2 | |
| uniforms | back to summary |
|---|---|
| private final Array<String> uniforms | |
| validators | back to summary |
|---|---|
| private final Array<BaseShader. | |
| BaseShader | back to summary |
|---|---|
| public BaseShader() | |
| begin | back to summary |
|---|---|
| public void begin(Camera camera, RenderContext context) Implements com. Doc from com. Initializes the context for exclusive rendering by this shader. Use the
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Doc from com. Releases all resources of this object.
| |
| end | back to summary |
|---|---|
| public void end() Implements com. Doc from com. Cleanup the context so other shaders can render. Must be called when done rendering using the
| |
| getAttributeLocations | back to summary |
|---|---|
| private final int[] getAttributeLocations(final VertexAttributes attrs) | |
| getInstancedAttributeLocations | back to summary |
|---|---|
| private final int[] getInstancedAttributeLocations(final VertexAttributes attrs) | |
| getUniformAlias | back to summary |
|---|---|
public String getUniformAlias(final int id)
| |
| getUniformID | back to summary |
|---|---|
public int getUniformID(final String alias)
| |
| has | back to summary |
|---|---|
| public final boolean has(final int inputID) Whether this Shader instance implements the specified uniform, only valid after a call to init(). | |
| init | back to summary |
|---|---|
| public void init(final ShaderProgram program, final Renderable renderable) Initialize this shader, causing all registered uniforms/attributes to be fetched. | |
| loc | back to summary |
|---|---|
| public final int loc(final int inputID) | |
| register | back to summary |
|---|---|
| public int register(final String alias, final BaseShader. Register an uniform which might be used by this shader. Only possible prior to the call to init().
| |
| register | back to summary |
|---|---|
| public int register(final String alias, final BaseShader. | |
| register | back to summary |
|---|---|
| public int register(final String alias, final BaseShader. | |
| register | back to summary |
|---|---|
| public int register(final String alias) | |
| register | back to summary |
|---|---|
| public int register(final BaseShader. | |
| register | back to summary |
|---|---|
| public int register(final BaseShader. | |
| render | back to summary |
|---|---|
| public void render(Renderable renderable) Implements com. Doc from com. Renders the
| |
| render | back to summary |
|---|---|
| public void render(Renderable renderable, final Attributes combinedAttributes) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final Matrix4 value) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final Matrix3 value) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final Vector3 value) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final Vector2 value) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final Color value) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final float value) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final float v1, final float v2) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final float v1, final float v2, final float v3) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final float v1, final float v2, final float v3, final float v4) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final int value) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final int v1, final int v2) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final int v1, final int v2, final int v3) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final int v1, final int v2, final int v3, final int v4) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final TextureDescriptor<T extends GLTexture> textureDesc) | |
| set | back to summary |
|---|---|
| public final boolean set(final int uniform, final GLTexture texture) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isGlobal(final BaseShader shader, final int inputID)
Implements com.
|
| GlobalSetter | back to summary |
|---|---|
| public GlobalSetter() | |
| isGlobal | back to summary |
|---|---|
| public boolean isGlobal(final BaseShader shader, final int inputID) Implements com.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isGlobal(final BaseShader shader, final int inputID)
Implements com.
|
| LocalSetter | back to summary |
|---|---|
| public LocalSetter() | |
| isGlobal | back to summary |
|---|---|
| public boolean isGlobal(final BaseShader shader, final int inputID) Implements com.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isGlobal(final BaseShader shader, final int inputID)
Returns: True if the uniform only has to be set once per render call, false if the uniform must be set for each renderable. |
| public void | set(final BaseShader shader, final int inputID, final Renderable renderable, final Attributes combinedAttributes)
|
| isGlobal | back to summary |
|---|---|
public boolean isGlobal(final BaseShader shader, final int inputID)
| |
| set | back to summary |
|---|---|
| public void set(final BaseShader shader, final int inputID, final Renderable renderable, final Attributes combinedAttributes) | |
| Modifier and Type | Field and Description |
|---|---|
| public final String | |
| public final long | |
| public final long | |
| public final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | validate(final BaseShader shader, final int inputID, final Renderable renderable)
Implements com.
|
| alias | back to summary |
|---|---|
| public final String alias | |
| environmentMask | back to summary |
|---|---|
| public final long environmentMask | |
| materialMask | back to summary |
|---|---|
| public final long materialMask | |
| overallMask | back to summary |
|---|---|
| public final long overallMask | |
| Uniform | back to summary |
|---|---|
| public Uniform(final String alias, final long materialMask, final long environmentMask, final long overallMask) | |
| Uniform | back to summary |
|---|---|
| public Uniform(final String alias, final long materialMask, final long environmentMask) | |
| Uniform | back to summary |
|---|---|
| public Uniform(final String alias, final long overallMask) | |
| Uniform | back to summary |
|---|---|
| public Uniform(final String alias) | |
| validate | back to summary |
|---|---|
| public boolean validate(final BaseShader shader, final int inputID, final Renderable renderable) Implements com. | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | validate(final BaseShader shader, final int inputID, final Renderable renderable)
Returns: True if the input is valid for the renderable, false otherwise. |
| validate | back to summary |
|---|---|
public boolean validate(final BaseShader shader, final int inputID, final Renderable renderable)
| |