#include <renderState.h>
Inheritance diagram for RenderState:
Public Member Functions | |
virtual | ~RenderState () |
bool | operator< (const RenderState &other) const |
INLINE int | get_num_attribs () const |
INLINE const RenderAttrib * | get_attrib (int n) const |
INLINE int | get_override (int n) const |
int | find_attrib (TypeHandle type) const |
CPT (RenderState) compose(const RenderState *other) const | |
CPT (RenderState) invert_compose(const RenderState *other) const | |
CPT (RenderState) add_attrib(const RenderAttrib *attrib | |
CPT (RenderState) remove_attrib(TypeHandle type) const | |
CPT (RenderState) adjust_all_priorities(int adjustment) const | |
const RenderAttrib * | get_attrib (TypeHandle type) const |
void | output (ostream &out) const |
void | write (ostream &out, int indent_level) const |
INLINE int | get_bin_index () const |
INLINE int | get_draw_order () const |
INLINE const FogAttrib * | get_fog () const |
INLINE const CullBinAttrib * | get_bin () const |
INLINE const TransparencyAttrib * | get_transparency () const |
CPT (RenderState) issue_delta_modify(const RenderState *other | |
CPT (RenderState) issue_delta_set(const RenderState *other | |
virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
virtual int | complete_pointers (TypedWritable **plist, BamReader *manager) |
virtual void | finalize () |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
CPT (RenderState) make_empty() | |
CPT (RenderState) make(const RenderAttrib *attrib | |
CPT (RenderState) make(const RenderAttrib *attrib1 | |
CPT (RenderState) make(const RenderAttrib *attrib1 | |
CPT (RenderState) make(const RenderAttrib *attrib1 | |
CPT (RenderState) make(const RenderAttrib *const *attrib | |
int | get_max_priority () |
int | get_num_states () |
int | get_num_unused_states () |
int | clear_cache () |
void | bin_removed (int bin_index) |
void | register_with_read_factory () |
TypedWritable * | change_this (TypedWritable *old_ptr, BamReader *manager) |
TypeHandle | get_class_type () |
void | init_type () |
Public Attributes | |
PUBLISHED | __pad0__: INLINE bool is_empty() const |
int | override = 0) |
const RenderAttrib * | attrib2 |
const RenderAttrib int | override = 0) |
const RenderAttrib * | attrib2 |
const RenderAttrib const RenderAttrib * | attrib3 |
const RenderAttrib const RenderAttrib int | override = 0) |
const RenderAttrib * | attrib2 |
const RenderAttrib const RenderAttrib * | attrib3 |
const RenderAttrib const RenderAttrib const RenderAttrib * | attrib4 |
const RenderAttrib const RenderAttrib const RenderAttrib int | override = 0) |
int | num_attribs |
int int | override = 0) |
GraphicsStateGuardianBase *gsg | const |
GraphicsStateGuardianBase *gsg | const |
Protected Member Functions | |
RenderState () | |
void | fillin (DatagramIterator &scan, BamReader *manager) |
Static Protected Member Functions | |
TypedWritable * | make_from_bam (const FactoryParams ¶ms) |
Private Types | |
typedef pset< const RenderState *, IndirectLess< RenderState > > | States |
typedef pmap< const RenderState *, Composition > | CompositionCache |
typedef ov_set< Attribute > | Attributes |
enum | Flags { F_checked_bin_index = 0x0001, F_checked_fog = 0x0002, F_checked_bin = 0x0004, F_checked_transparency = 0x0008, F_is_destructing = 0x8000 } |
Private Member Functions | |
RenderState (const RenderState ©) | |
void | operator= (const RenderState ©) |
CPT (RenderState) do_compose(const RenderState *other) const | |
CPT (RenderState) do_invert_compose(const RenderState *other) const | |
void | determine_bin_index () |
void | determine_fog () |
void | determine_bin () |
void | determine_transparency () |
INLINE void | set_destructing () |
INLINE bool | is_destructing () const |
Static Private Member Functions | |
CPT (RenderState) return_new(RenderState *state) | |
CPT (RenderState) _empty_state | |
Private Attributes | |
States::iterator | _saved_entry |
CompositionCache | _composition_cache |
CompositionCache | _invert_composition_cache |
const RenderState * | _self_compose |
Attributes | _attributes |
int | _bin_index |
int | _draw_order |
const FogAttrib * | _fog |
const CullBinAttrib * | _bin |
const TransparencyAttrib * | _transparency |
unsigned short | _flags |
Static Private Attributes | |
States * | _states = NULL |
TypeHandle | _type_handle |
|
Definition at line 180 of file renderState.h. |
|
Definition at line 151 of file renderState.h. |
|
Definition at line 129 of file renderState.h. Referenced by clear_cache(), get_num_states(), get_num_unused_states(), and RenderState(). |
|
Definition at line 194 of file renderState.h. |
|
Definition at line 45 of file renderState.cxx. References _flags, _saved_entry, _self_compose, _states, NULL, and States. |
|
Definition at line 65 of file renderState.cxx. |
|
Definition at line 86 of file renderState.cxx. References _composition_cache, _invert_composition_cache, _saved_entry, _self_compose, _states, is_destructing(), NULL, set_destructing(), and unref_delete(). |
|
Definition at line 943 of file renderState.cxx. Referenced by CullBinManager::remove_bin(). |
|
Definition at line 1281 of file renderState.cxx. References CPT(), DCAST, pointer, and BamReader::register_finalize(). Referenced by make_from_bam(). |
|
Definition at line 751 of file renderState.cxx. References _composition_cache, _invert_composition_cache, _self_compose, _states, NULL, States, and unref_delete(). |
|
Reimplemented from TypedWritable. Definition at line 1247 of file renderState.cxx. References _attributes, RenderState::Attribute::_type, TypedWritable::complete_pointers(), DCAST, NULL, and ov_set< Attribute >::sort(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by change_this(). |
|
Definition at line 1178 of file renderState.cxx. References _bin, _flags, DCAST, F_checked_bin, get_attrib(), CullBinAttrib::get_class_type(), and NULL. |
|
|
Definition at line 1163 of file renderState.cxx. References _flags, _fog, DCAST, F_checked_fog, get_attrib(), FogAttrib::get_class_type(), and NULL. |
|
Definition at line 1193 of file renderState.cxx. References _flags, _transparency, DCAST, F_checked_transparency, get_attrib(), TransparencyAttrib::get_class_type(), and NULL. |
|
Reimplemented from TypedWritable. Definition at line 1350 of file renderState.cxx. References _attributes, TypedWritable::fillin(), DatagramIterator::get_int32(), DatagramIterator::get_uint16(), and BamReader::read_pointer(). Referenced by make_from_bam(). |
|
Reimplemented from TypedWritable. Definition at line 1309 of file renderState.cxx. References ReferenceCount::unref(). |
|
Definition at line 219 of file renderState.cxx. References _attributes, and type. |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 226 of file renderState.h. References ReferenceCount::get_class_type(), and TypedWritableReferenceCount::init_type(). |
|
Definition at line 562 of file renderState.cxx. References _attributes, NULL, and type. |
|
Referenced by SceneGraphAnalyzer::collect_statistics(), determine_bin(), determine_fog(), and determine_transparency(). |
|
Referenced by CullResult::add_object(), and determine_bin_index(). |
|
|
|
Reimplemented from ReferenceCount. Definition at line 215 of file renderState.h. Referenced by register_with_read_factory(). |
|
|
|
Referenced by CullTraverser::traverse(). |
|
Definition at line 620 of file renderState.cxx. Referenced by CPT(). |
|
|
|
Definition at line 632 of file renderState.cxx. |
|
Definition at line 647 of file renderState.cxx. References _composition_cache, _invert_composition_cache, _self_compose, _states, count, NULL, and States. |
|
|
|
Referenced by CullResult::add_object(), and determine_bin_index(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 223 of file renderState.h. References ReferenceCount::get_class_type(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 218 of file renderState.h. References ReferenceCount::get_class_type(), TypedWritableReferenceCount::init_type(), and register_type(). Referenced by init_libpgraph(). |
|
Referenced by ~RenderState(). |
|
Definition at line 1330 of file renderState.cxx. References change_this(), fillin(), params, parse_params(), and BamReader::register_change_this(). Referenced by register_with_read_factory(). |
|
Definition at line 202 of file renderState.cxx. References _attributes. |
|
Definition at line 75 of file renderState.cxx. |
|
Definition at line 577 of file renderState.cxx. References _attributes. Referenced by operator<<(). |
|
Definition at line 1210 of file renderState.cxx. References get_class_type(), BamReader::get_factory(), make_from_bam(), and Factory< TypedWritable >::register_factory(). Referenced by init_libpgraph(). |
|
Referenced by ~RenderState(). |
|
Definition at line 600 of file renderState.cxx. References _attributes, and indent(). Referenced by SceneGraphReducer::r_apply_attribs(). |
|
Implements TypedWritableReferenceCount. Definition at line 1221 of file renderState.cxx. References _attributes, RenderState::Attribute::_override, Datagram::add_int32(), Datagram::add_uint16(), PN_uint16, TypedWritable::write_datagram(), and BamWriter::write_pointer(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 62 of file renderState.h. |
|
Definition at line 181 of file renderState.h. Referenced by complete_pointers(), fillin(), find_attrib(), get_attrib(), operator<(), output(), write(), and write_datagram(). |
|
Definition at line 191 of file renderState.h. Referenced by determine_bin(). |
|
Definition at line 185 of file renderState.h. Referenced by determine_bin_index(). |
|
Definition at line 152 of file renderState.h. Referenced by clear_cache(), get_num_unused_states(), and ~RenderState(). |
|
Definition at line 186 of file renderState.h. Referenced by determine_bin_index(). |
|
Definition at line 201 of file renderState.h. Referenced by determine_bin(), determine_bin_index(), determine_fog(), determine_transparency(), and RenderState(). |
|
Definition at line 190 of file renderState.h. Referenced by determine_fog(). |
|
Definition at line 153 of file renderState.h. Referenced by clear_cache(), get_num_unused_states(), and ~RenderState(). |
|
Definition at line 136 of file renderState.h. Referenced by RenderState(), and ~RenderState(). |
|
Definition at line 161 of file renderState.h. Referenced by clear_cache(), get_num_unused_states(), RenderState(), and ~RenderState(). |
|
Definition at line 32 of file renderState.cxx. Referenced by clear_cache(), get_num_states(), get_num_unused_states(), RenderState(), and ~RenderState(). |
|
Definition at line 192 of file renderState.h. Referenced by determine_transparency(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 229 of file renderState.h. |
|
Definition at line 77 of file renderState.h. |
|
Definition at line 74 of file renderState.h. |
|
Definition at line 72 of file renderState.h. |
|
Definition at line 77 of file renderState.h. |
|
Definition at line 74 of file renderState.h. |
|
Definition at line 77 of file renderState.h. |
|
Definition at line 112 of file renderState.h. |
|
Definition at line 110 of file renderState.h. |
|
Definition at line 81 of file renderState.h. |
|
Definition at line 81 of file renderState.h. |
|
Definition at line 79 of file renderState.h. |
|
Definition at line 75 of file renderState.h. |
|
Definition at line 72 of file renderState.h. |
|
Definition at line 86 of file renderState.h. |