public class FlatShadedProgram
extends java.lang.Object
Constructor and Description |
---|
FlatShadedProgram()
Prepares the program in the current EGL context.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(float[] mvpMatrix,
float[] color,
java.nio.FloatBuffer vertexBuffer,
int firstVertex,
int vertexCount,
int coordsPerVertex,
int vertexStride)
Issues the draw call.
|
void |
release()
Releases the program.
|
public FlatShadedProgram()
public void release()
public void draw(float[] mvpMatrix, float[] color, java.nio.FloatBuffer vertexBuffer, int firstVertex, int vertexCount, int coordsPerVertex, int vertexStride)
mvpMatrix
- The 4x4 projection matrix.color
- A four-element color vector.vertexBuffer
- Buffer with vertex data.firstVertex
- Index of first vertex to use in vertexBuffer.vertexCount
- Number of vertices in vertexBuffer.coordsPerVertex
- The number of coordinates per vertex (for example, x,y is 2).vertexStride
- Width, in bytes, of the data for each vertex (often vertexCount *
sizeof(float)).© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal