public static class

ProgramVertexFixedFunction.Constants

extends Object
java.lang.Object
   ↳ android.renderscript.ProgramVertexFixedFunction.Constants

Class Overview

Helper class to store modelview, projection and texture matrices for ProgramVertexFixedFunction

Summary

Public Constructors
ProgramVertexFixedFunction.Constants(RenderScript rs)
Creates a buffer to store fixed function emulation matrices
Public Methods
void destroy()
Forces deallocation of memory backing the contant matrices.
void setModelview(Matrix4f m)
Sets the modelview matrix in the fixed function matrix buffer
void setProjection(Matrix4f m)
Sets the projection matrix in the fixed function matrix buffer
void setTexture(Matrix4f m)
Sets the texture matrix in the fixed function matrix buffer.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProgramVertexFixedFunction.Constants (RenderScript rs)

Since: API Level 11

Creates a buffer to store fixed function emulation matrices

Parameters
rs Context to which the allocation will belong.

Public Methods

public void destroy ()

Since: API Level 11

Forces deallocation of memory backing the contant matrices. Normally, this is unnecessary and will be garbage collected

public void setModelview (Matrix4f m)

Since: API Level 11

Sets the modelview matrix in the fixed function matrix buffer

Parameters
m modelview matrix

public void setProjection (Matrix4f m)

Since: API Level 11

Sets the projection matrix in the fixed function matrix buffer

Parameters
m projection matrix

public void setTexture (Matrix4f m)

Since: API Level 11

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.

Parameters
m modelview matrix