17 INLINE RenderEffects::Effect::
19 _type(effect->get_type()),
28 INLINE RenderEffects::Effect::
37 INLINE RenderEffects::Effect::
47 INLINE RenderEffects::Effect::
48 Effect(
const Effect ©) :
57 INLINE
void RenderEffects::Effect::
58 operator = (
const Effect ©) {
60 _effect = copy._effect;
68 INLINE
bool RenderEffects::Effect::
69 operator < (
const Effect &other)
const {
70 return _type < other._type;
79 INLINE
int RenderEffects::Effect::
80 compare_to(
const Effect &other)
const {
81 if (_type != other._type) {
82 return _type.get_index() - other._type.get_index();
84 if (_effect != other._effect) {
85 return _effect < other._effect ? -1 : 1;
95 return _effects.
empty();
104 return _effects.
size();
112 nassertr(n < _effects.
size(),
nullptr);
113 return _effects[n]._effect;
121 return _effects.
size();
129 nassertr(n < _effects.
size(),
nullptr);
130 return _effects[n]._effect;
150 if ((_flags & F_checked_decal) == 0) {
155 return ((_flags & F_has_decal) != 0);
167 if ((_flags & F_checked_show_bounds) == 0) {
172 return ((_flags & F_has_show_bounds) != 0);
181 if ((_flags & F_checked_show_bounds) == 0) {
186 return ((_flags & F_has_show_tight_bounds) != 0);
195 if ((_flags & F_checked_cull_callback) == 0) {
200 return ((_flags & F_has_cull_callback) != 0);
210 if ((_flags & F_checked_adjust_transform) == 0) {
215 return ((_flags & F_has_adjust_transform) != 0);
bool is_empty() const
Returns true if the state is empty, false otherwise.
size_type_0 size() const
Returns the number of elements in the ordered vector.
This is the base class for a number of special render effects that may be set on scene graph nodes to...
bool empty() const
Returns true if the ordered vector is empty, false otherwise.
bool has_cull_callback() const
This function is provided as an optimization, to speed up the render-time checking for the existance ...
bool has_show_bounds() const
This function is provided as an optimization, to speed up the render-time checking for the existance ...
bool has_adjust_transform() const
This function is provided as an optimization, to speed up the render-time checking for the existance ...
bool has_decal() const
This function is provided as an optimization, to speed up the render-time checking for the existance ...
const RenderEffect * get_effect(size_t n) const
Returns the nth effect in the state.
size_t size() const
Returns the number of separate effects indicated in the state.
size_t get_num_effects() const
Returns the number of separate effects indicated in the state.
const RenderEffect * operator [](size_t n) const
Returns the nth effect in the state.
TypeHandle is the identifier used to differentiate C++ class types.
This represents a unique collection of RenderEffect objects that correspond to a particular renderabl...
bool has_show_tight_bounds() const
If has_show_bounds() returns true, this will return true if the ShowBoundsEffect in question requests...