to top
Android APIs
Added in API level 11
Deprecated since API level 16
public static class

ProgramVertexFixedFunction.Constants

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

This class was deprecated in API level 16.
in API 16 Helper class to store modelview, projection and texture matrices for ProgramVertexFixedFunction

Summary

Public Constructors

? Examples
ProgramVertexFixedFunction.Constants( RenderScript rs)
This constructor was deprecated in API level 16. in API 16 Creates a buffer to store fixed function emulation matrices
Public Methods

? Examples
void destroy()
This method was deprecated in API level 16. in API 16 Forces deallocation of memory backing the contant matrices. Normally, this is unnecessary and will be garbage collected

? Examples
void setModelview( Matrix4f m)
This method was deprecated in API level 16. in API 16 Sets the modelview matrix in the fixed function matrix buffer

? Examples
void setProjection( Matrix4f m)
This method was deprecated in API level 16. in API 16 Sets the projection matrix in the fixed function matrix buffer

? Examples
void setTexture( Matrix4f m)
This method was deprecated in API level 16. 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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProgramVertexFixedFunction.Constants (RenderScript rs)

Added in API level 11

This constructor was deprecated in API level 16.
in API 16 Creates a buffer to store fixed function emulation matrices

Parameters
rs Context to which the allocation will belong.

Public Methods

public void destroy ()

Added in API level 11

This method was deprecated in API level 16.
in API 16 Forces deallocation of memory backing the contant matrices. Normally, this is unnecessary and will be garbage collected

public void setModelview (Matrix4f m)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Sets the modelview matrix in the fixed function matrix buffer

Parameters
m modelview matrix

public void setProjection (Matrix4f m)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Sets the projection matrix in the fixed function matrix buffer

Parameters
m projection matrix

public void setTexture (Matrix4f m)

Added in API level 11

This method was deprecated in API level 16.
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.

Parameters
m modelview matrix
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.