public class ProgramStore extends BaseObj
Modifier and Type | Class and Description |
---|---|
static class |
ProgramStore.BlendDstFunc
Specifies the functions used to combine incoming pixels with
those already in the frame buffer.
|
static class |
ProgramStore.BlendSrcFunc
Specifies the functions used to combine incoming pixels with
those already in the frame buffer.
|
static class |
ProgramStore.Builder
Builder class for ProgramStore object.
|
static class |
ProgramStore.DepthFunc
Specifies the function used to determine whether a fragment
will be drawn during the depth testing stage in the rendering
pipeline by comparing its value with that already in the depth
buffer.
|
Modifier and Type | Method and Description |
---|---|
static ProgramStore |
BLEND_ALPHA_DEPTH_NONE(RenderScript rs)
Returns a pre-defined program store object with the following
characteristics:
- incoming pixels always pass the depth test and their value
is not stored in the depth buffer
- incoming pixel's value is combined with the stored color
(Dest) using the following formula
Final.RGB = Source.RGB * Source.A + Dest.RGB * (1 - Source.A)
|
static ProgramStore |
BLEND_ALPHA_DEPTH_TEST(RenderScript rs)
Returns a pre-defined program store object with the following
characteristics:
- incoming pixels are drawn if their depth value is less than
the stored value in the depth buffer.
|
static ProgramStore |
BLEND_NONE_DEPTH_NONE(RenderScript rs)
Returns a pre-defined program store object with the following
characteristics:
- incoming pixels always pass the depth test and their value
is not stored in the depth buffer
- incoming pixels override the value stored in the color
buffer
|
static ProgramStore |
BLEND_NONE_DEPTH_TEST(RenderScript rs)
Returns a pre-defined program store object with the following
characteristics:
- incoming pixels are drawn if their depth value is less than
the stored value in the depth buffer.
|
ProgramStore.BlendDstFunc |
getBlendDstFunc()
Specifies how the destination blending factor is computed
|
ProgramStore.BlendSrcFunc |
getBlendSrcFunc()
Specifies how the source blending factor is computed
|
ProgramStore.DepthFunc |
getDepthFunc()
Returns the function used to test writing into the depth
buffer
|
boolean |
isColorMaskAlphaEnabled()
Queries whether alpha channel is written
|
boolean |
isColorMaskBlueEnabled()
Queries whether blue channel is written
|
boolean |
isColorMaskGreenEnabled()
Queries whether green channel is written
|
boolean |
isColorMaskRedEnabled()
Queries whether red channel is written
|
boolean |
isDepthMaskEnabled()
Queries whether writes are enabled into the depth buffer
|
boolean |
isDitherEnabled()
Specifies whether colors are dithered before writing into the
framebuffer
|
public ProgramStore.DepthFunc getDepthFunc()
public boolean isDepthMaskEnabled()
public boolean isColorMaskRedEnabled()
public boolean isColorMaskGreenEnabled()
public boolean isColorMaskBlueEnabled()
public boolean isColorMaskAlphaEnabled()
public ProgramStore.BlendSrcFunc getBlendSrcFunc()
public ProgramStore.BlendDstFunc getBlendDstFunc()
public boolean isDitherEnabled()
public static ProgramStore BLEND_NONE_DEPTH_TEST(RenderScript rs)
rs
- Context to which the program will belong.public static ProgramStore BLEND_NONE_DEPTH_NONE(RenderScript rs)
rs
- Context to which the program will belong.public static ProgramStore BLEND_ALPHA_DEPTH_TEST(RenderScript rs)
rs
- Context to which the program will belong.public static ProgramStore BLEND_ALPHA_DEPTH_NONE(RenderScript rs)
rs
- Context to which the program will belong.