public static class ProgramFragmentFixedFunction.Builder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProgramFragmentFixedFunction.Builder.EnvMode
Deprecated.
in API 16
EnvMode describes how textures are combined with the existing
color in the fixed function fragment shader
|
static class |
ProgramFragmentFixedFunction.Builder.Format
Deprecated.
in API 16
Format describes the pixel format of textures in the fixed
function fragment shader and how they are sampled
|
Modifier and Type | Field and Description |
---|---|
static int |
MAX_TEXTURE
Deprecated.
in API 16
|
Constructor and Description |
---|
Builder(RenderScript rs)
Deprecated.
Creates a builder for fixed function fragment program
|
Modifier and Type | Method and Description |
---|---|
ProgramFragmentFixedFunction |
create()
Deprecated.
in API 16
Creates the fixed function fragment program from the current
state of the builder.
|
ProgramFragmentFixedFunction.Builder |
setPointSpriteTexCoordinateReplacement(boolean enable)
Deprecated.
in API 16
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)
Deprecated.
in API 16
Adds a texture to be fetched as part of the fixed function
fragment program
|
ProgramFragmentFixedFunction.Builder |
setVaryingColor(boolean enable)
Deprecated.
in API 16
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
|
public static final int MAX_TEXTURE
public Builder(RenderScript rs)
rs
- Context to which the program will belong.public ProgramFragmentFixedFunction.Builder setTexture(ProgramFragmentFixedFunction.Builder.EnvMode env, ProgramFragmentFixedFunction.Builder.Format fmt, int slot) throws IllegalArgumentException
env
- specifies how the texture is combined with the
current colorfmt
- specifies the format of the texture and how its
components will be used to combine with the
current colorslot
- index of the texture to apply the operations onIllegalArgumentException
public ProgramFragmentFixedFunction.Builder setPointSpriteTexCoordinateReplacement(boolean enable)
public ProgramFragmentFixedFunction.Builder setVaryingColor(boolean enable)
public ProgramFragmentFixedFunction create()