| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final Mesh | |
| private final int | |
| private int | |
| private final int | |
| private int | |
| private boolean | |
| private int | |
| private final Matrix4 | |
| private ShaderProgram | |
| private final String[] | |
| private final int | |
| private int | |
| private final int | |
| private final float[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | ImmediateModeRenderer20(int maxVertices, boolean hasNormals, boolean hasColors, int numTexCoords, ShaderProgram shader)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | begin(Matrix4 projModelView, int primitiveType)
Implements com.
|
| private VertexAttribute[] | |
| public void | |
| public void | color(float r, float g, float b, float a)
Implements com.
|
| public void | |
| public static ShaderProgram | createDefaultShader(boolean hasNormals, boolean hasColors, int numTexCoords)
Returns a new instance of the default shader used by SpriteBatch for GL2 when no shader is specified. |
| private static String | |
| private static String | |
| public void | |
| public void | |
| public void | |
| public int | |
| public int | |
| public ShaderProgram | |
| public void | normal(float x, float y, float z)
Implements com.
|
| public void | |
| public void | texCoord(float u, float v)
Implements com.
|
| public void | vertex(float x, float y, float z)
Implements com.
|
| colorOffset | back to summary |
|---|---|
| private final int colorOffset | |
| maxVertices | back to summary |
|---|---|
| private final int maxVertices | |
| mesh | back to summary |
|---|---|
| private final Mesh mesh | |
| normalOffset | back to summary |
|---|---|
| private final int normalOffset | |
| numSetTexCoords | back to summary |
|---|---|
| private int numSetTexCoords | |
| numTexCoords | back to summary |
|---|---|
| private final int numTexCoords | |
| numVertices | back to summary |
|---|---|
| private int numVertices | |
| ownsShader | back to summary |
|---|---|
| private boolean ownsShader | |
| primitiveType | back to summary |
|---|---|
| private int primitiveType | |
| projModelView | back to summary |
|---|---|
| private final Matrix4 projModelView | |
| shader | back to summary |
|---|---|
| private ShaderProgram shader | |
| shaderUniformNames | back to summary |
|---|---|
| private final String[] shaderUniformNames | |
| texCoordOffset | back to summary |
|---|---|
| private final int texCoordOffset | |
| vertexIdx | back to summary |
|---|---|
| private int vertexIdx | |
| vertexSize | back to summary |
|---|---|
| private final int vertexSize | |
| vertices | back to summary |
|---|---|
| private final float[] vertices | |
| ImmediateModeRenderer20 | back to summary |
|---|---|
| public ImmediateModeRenderer20(boolean hasNormals, boolean hasColors, int numTexCoords) | |
| ImmediateModeRenderer20 | back to summary |
|---|---|
| public ImmediateModeRenderer20(int maxVertices, boolean hasNormals, boolean hasColors, int numTexCoords) | |
| ImmediateModeRenderer20 | back to summary |
|---|---|
| public ImmediateModeRenderer20(int maxVertices, boolean hasNormals, boolean hasColors, int numTexCoords, ShaderProgram shader) | |
| begin | back to summary |
|---|---|
| public void begin(Matrix4 projModelView, int primitiveType) Implements com. | |
| buildVertexAttributes | back to summary |
|---|---|
| private VertexAttribute[] buildVertexAttributes(boolean hasNormals, boolean hasColor, int numTexCoords) | |
| color | back to summary |
|---|---|
| public void color(Color color) Implements com. | |
| color | back to summary |
|---|---|
| public void color(float r, float g, float b, float a) Implements com. | |
| color | back to summary |
|---|---|
| public void color(float colorBits) Implements com. | |
| createDefaultShader | back to summary |
|---|---|
| public static ShaderProgram createDefaultShader(boolean hasNormals, boolean hasColors, int numTexCoords) Returns a new instance of the default shader used by SpriteBatch for GL2 when no shader is specified. | |
| createFragmentShader | back to summary |
|---|---|
| private static String createFragmentShader(boolean hasNormals, boolean hasColors, int numTexCoords) | |
| createVertexShader | back to summary |
|---|---|
| private static String createVertexShader(boolean hasNormals, boolean hasColors, int numTexCoords) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. | |
| end | back to summary |
|---|---|
| public void end() Implements com. | |
| flush | back to summary |
|---|---|
| public void flush() Implements com. | |
| getMaxVertices | back to summary |
|---|---|
| public int getMaxVertices() Implements com.
| |
| getNumVertices | back to summary |
|---|---|
| public int getNumVertices() Implements com. | |
| getShader | back to summary |
|---|---|
| public ShaderProgram getShader() | |
| normal | back to summary |
|---|---|
| public void normal(float x, float y, float z) Implements com. | |
| setShader | back to summary |
|---|---|
| public void setShader(ShaderProgram shader) | |
| texCoord | back to summary |
|---|---|
| public void texCoord(float u, float v) Implements com. | |
| vertex | back to summary |
|---|---|
| public void vertex(float x, float y, float z) Implements com. | |