public static class ProgramVertexFixedFunction.Constants extends Object
Constructor and Description |
---|
Constants(RenderScript rs)
Deprecated.
in API 16
Creates a buffer to store fixed function emulation matrices
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Deprecated.
in API 16
Forces deallocation of memory backing the contant matrices.
Normally, this is unnecessary and will be garbage collected
|
void |
setModelview(Matrix4f m)
Deprecated.
in API 16
Sets the modelview matrix in the fixed function matrix buffer
|
void |
setProjection(Matrix4f m)
Deprecated.
in API 16
Sets the projection matrix in the fixed function matrix buffer
|
void |
setTexture(Matrix4f m)
Deprecated.
in API 16
Sets the texture matrix in the fixed function matrix buffer.
Texture matrix must be enabled in the
ProgramVertexFixedFunction builder for the shader to utilize
it.
|
public Constants(RenderScript rs)
rs
- Context to which the allocation will belong.public void destroy()
public void setModelview(Matrix4f m)
m
- modelview matrixpublic void setProjection(Matrix4f m)
m
- projection matrixpublic void setTexture(Matrix4f m)
m
- modelview matrix