|
enum | StencilComparisonFunction {
SCF_never = 1
, SCF_less_than = 2
, SCF_equal = 3
, SCF_less_than_or_equal = 4
,
SCF_greater_than = 5
, SCF_not_equal = 6
, SCF_greater_than_or_equal = 7
, SCF_always = 8
} |
|
enum | StencilOperation {
SO_keep = 0
, SO_zero = 1
, SO_replace = 2
, SO_increment = 3
,
SO_decrement = 4
, SO_invert = 5
, SO_increment_saturate = 6
, SO_decrement_saturate = 7
} |
|
enum | StencilRenderState {
SRS_front_comparison_function = 0
, SRS_front_stencil_fail_operation = 1
, SRS_front_stencil_pass_z_fail_operation = 2
, SRS_front_stencil_pass_z_pass_operation = 3
,
SRS_reference = 4
, SRS_read_mask = 5
, SRS_write_mask = 6
, SRS_back_comparison_function = 7
,
SRS_back_stencil_fail_operation = 8
, SRS_back_stencil_pass_z_fail_operation = 9
, SRS_back_stencil_pass_z_pass_operation = 10
, SRS_clear = 11
,
SRS_clear_value = 12
, SRS_total = 13
} |
|
Public Types inherited from RenderAttrib |
enum | PandaCompareFunc {
M_none = 0
, M_never = 1
, M_less = 2
, M_equal = 3
,
M_less_equal = 4
, M_greater = 5
, M_not_equal = 6
, M_greater_equal = 7
,
M_always = 8
} |
|
enum | TexGenMode {
M_off = 0
, M_eye_sphere_map = 1
, M_world_cube_map = 2
, M_eye_cube_map = 3
,
M_world_normal = 4
, M_eye_normal = 5
, M_world_position = 6
, M_unused = 7
,
M_eye_position = 8
, M_point_sprite = 9
, M_unused2 = 10
, M_constant = 11
} |
|
|
static int | getClassSlot () |
|
static TypeHandle | getClassType () |
|
static const RenderAttrib | make (bool front_enable, RenderAttrib::PandaCompareFunc front_comparison_function, StencilAttrib::StencilOperation stencil_fail_operation, StencilAttrib::StencilOperation stencil_pass_z_fail_operation, StencilAttrib::StencilOperation front_stencil_pass_z_pass_operation, unsigned int reference, unsigned int read_mask, unsigned int write_mask) |
| Constructs a front face StencilAttrib.
|
|
static const RenderAttrib | make2Sided (bool front_enable, bool back_enable, RenderAttrib::PandaCompareFunc front_comparison_function, StencilAttrib::StencilOperation stencil_fail_operation, StencilAttrib::StencilOperation stencil_pass_z_fail_operation, StencilAttrib::StencilOperation front_stencil_pass_z_pass_operation, unsigned int reference, unsigned int read_mask, unsigned int write_mask, RenderAttrib::PandaCompareFunc back_comparison_function, StencilAttrib::StencilOperation back_stencil_fail_operation, StencilAttrib::StencilOperation back_stencil_pass_z_fail_operation, StencilAttrib::StencilOperation back_stencil_pass_z_pass_operation) |
| Constructs a two-sided StencilAttrib.
|
|
static const RenderAttrib | make2SidedWithClear (bool front_enable, bool back_enable, RenderAttrib::PandaCompareFunc front_comparison_function, StencilAttrib::StencilOperation stencil_fail_operation, StencilAttrib::StencilOperation stencil_pass_z_fail_operation, StencilAttrib::StencilOperation front_stencil_pass_z_pass_operation, unsigned int reference, unsigned int read_mask, unsigned int write_mask, RenderAttrib::PandaCompareFunc back_comparison_function, StencilAttrib::StencilOperation back_stencil_fail_operation, StencilAttrib::StencilOperation back_stencil_pass_z_fail_operation, StencilAttrib::StencilOperation back_stencil_pass_z_pass_operation, bool clear, unsigned int clear_value) |
| Constructs a two-sided StencilAttrib.
|
|
static const RenderAttrib | makeDefault () |
| Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.
|
|
static const RenderAttrib | makeOff () |
| Constructs a StencilAttrib that has stenciling turned off.
|
|
static const RenderAttrib | makeWithClear (bool front_enable, RenderAttrib::PandaCompareFunc front_comparison_function, StencilAttrib::StencilOperation stencil_fail_operation, StencilAttrib::StencilOperation stencil_pass_z_fail_operation, StencilAttrib::StencilOperation front_stencil_pass_z_pass_operation, unsigned int reference, unsigned int read_mask, unsigned int write_mask, bool clear, unsigned int clear_value) |
| Constructs a front face StencilAttrib.
|
|
Static Public Member Functions inherited from RenderAttrib |
static int | garbageCollect () |
| Performs a garbage-collection cycle.
|
|
static TypeHandle | getClassType () |
|
static int | getNumAttribs () |
| Returns the total number of unique RenderAttrib objects allocated in the world.
|
|
static | listAttribs (Ostream out) |
| Lists all of the RenderAttribs in the cache to the output stream, one per line.
|
|
static bool | validateAttribs () |
| Ensures that the cache is still stored in sorted order.
|
|
Static Public Member Functions inherited from TypedWritableReferenceCount |
static TypedWritableReferenceCount | decodeFromBamStream (VectorUchar data, BamReader reader) |
| Reads the bytes created by a previous call to encode_to_bam_stream(), and extracts and returns the single object on those bytes.
|
|
static TypeHandle | getClassType () |
|
Static Public Member Functions inherited from TypedWritable |
static TypeHandle | getClassType () |
|
Static Public Member Functions inherited from TypedObject |
static TypeHandle | getClassType () |
|
Static Public Member Functions inherited from ReferenceCount |
static TypeHandle | getClassType () |
|
A StencilAttrib is a collection of all stencil render states.
The render states in a StencilAttrib are read-only. A StencilAttrib is created with make or make_2_sided. To determine if two sided stencil is supported, call the function GraphicsStateGuardian:: get_supports_two_sided_stencil.