public static class

ProgramFragmentFixedFunction.Builder

extends Object
java.lang.Object
   ↳ android.renderscript.ProgramFragmentFixedFunction.Builder

Summary

Nested Classes
enum ProgramFragmentFixedFunction.Builder.EnvMode EnvMode describes how textures are combined with the existing color in the fixed function fragment shader  
enum ProgramFragmentFixedFunction.Builder.Format Format describes the pixel format of textures in the fixed function fragment shader and how they are sampled  
Constants
int MAX_TEXTURE
Public Constructors
ProgramFragmentFixedFunction.Builder(RenderScript rs)
Creates a builder for fixed function fragment program
Public Methods
ProgramFragmentFixedFunction create()
Creates the fixed function fragment program from the current state of the builder.
ProgramFragmentFixedFunction.Builder setPointSpriteTexCoordinateReplacement(boolean enable)
Specifies whether the texture coordinate passed from the vertex program is replaced with an openGL internal point sprite texture coordinate
ProgramFragmentFixedFunction.Builder setTexture(ProgramFragmentFixedFunction.Builder.EnvMode env, ProgramFragmentFixedFunction.Builder.Format fmt, int slot)
Adds a texture to be fetched as part of the fixed function fragment program
ProgramFragmentFixedFunction.Builder setVaryingColor(boolean enable)
Specifies whether the varying color passed from the vertex program or the constant color set on the fragment program is used in the final color calculation in the fixed function fragment shader
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int MAX_TEXTURE

Since: API Level 11

Constant Value: 2 (0x00000002)

Public Constructors

public ProgramFragmentFixedFunction.Builder (RenderScript rs)

Since: API Level 11

Creates a builder for fixed function fragment program

Parameters
rs Context to which the program will belong.

Public Methods

public ProgramFragmentFixedFunction create ()

Since: API Level 11

Creates the fixed function fragment program from the current state of the builder.

public ProgramFragmentFixedFunction.Builder setPointSpriteTexCoordinateReplacement (boolean enable)

Since: API Level 11

Specifies whether the texture coordinate passed from the vertex program is replaced with an openGL internal point sprite texture coordinate

public ProgramFragmentFixedFunction.Builder setTexture (ProgramFragmentFixedFunction.Builder.EnvMode env, ProgramFragmentFixedFunction.Builder.Format fmt, int slot)

Since: API Level 11

Adds a texture to be fetched as part of the fixed function fragment program

Parameters
env specifies how the texture is combined with the current color
fmt specifies the format of the texture and how its components will be used to combine with the current color
slot index of the texture to apply the operations on
Returns
  • this

public ProgramFragmentFixedFunction.Builder setVaryingColor (boolean enable)

Since: API Level 11

Specifies whether the varying color passed from the vertex program or the constant color set on the fragment program is used in the final color calculation in the fixed function fragment shader