Package playn.core
Class UniformQuadBatch.Source
java.lang.Object
playn.core.TexturedBatch.Source
playn.core.UniformQuadBatch.Source
- Enclosing class:
UniformQuadBatch
The source for the stock quad batch shader program.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Declares the attribute variables for our shader.static final String
Extracts the values from our data buffer.static final String
The shader code that computesv_Color
.static final String
The shader code that computesgl_Position
.static final String
The shader code that computesv_TexCoord
.static final String
Declares the uniform variables for our shader.static final String
Declares the varying variables for our shader. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvertex
(UniformQuadBatch batch) Returns the source to the vertex shader program.Methods inherited from class playn.core.TexturedBatch.Source
fragment
-
Field Details
-
VERT_UNIFS
Declares the uniform variables for our shader.- See Also:
-
VERT_ATTRS
Declares the attribute variables for our shader.- See Also:
-
VERT_VARS
Declares the varying variables for our shader.- See Also:
-
VERT_EXTRACTDATA
Extracts the values from our data buffer.- See Also:
-
VERT_SETPOS
The shader code that computesgl_Position
.- See Also:
-
VERT_SETTEX
The shader code that computesv_TexCoord
.- See Also:
-
VERT_SETCOLOR
The shader code that computesv_Color
.- See Also:
-
-
Constructor Details
-
Source
public Source()
-
-
Method Details
-
vertex
Returns the source to the vertex shader program.
-