21 INLINE RenderEffects::Effect::
23 _type(effect->get_type()),
35 INLINE RenderEffects::Effect::
47 INLINE RenderEffects::Effect::
59 INLINE RenderEffects::Effect::
60 Effect(
const Effect ©) :
71 INLINE
void RenderEffects::Effect::
72 operator = (
const Effect ©) {
74 _effect = copy._effect;
85 INLINE
bool RenderEffects::Effect::
86 operator < (
const Effect &other)
const {
87 return _type < other._type;
100 INLINE
int RenderEffects::Effect::
101 compare_to(
const Effect &other)
const {
102 if (_type != other._type) {
103 return _type.get_index() - other._type.get_index();
105 if (_effect != other._effect) {
106 return _effect < other._effect ? -1 : 1;
118 return _effects.
empty();
129 return _effects.
size();
139 nassertr(n >= 0 && n < (
int)_effects.
size(), NULL);
140 return _effects[n]._effect;
156 if ((_flags & F_checked_decal) == 0) {
161 return ((_flags & F_has_decal) != 0);
177 if ((_flags & F_checked_show_bounds) == 0) {
182 return ((_flags & F_has_show_bounds) != 0);
194 if ((_flags & F_checked_show_bounds) == 0) {
199 return ((_flags & F_has_show_tight_bounds) != 0);
211 if ((_flags & F_checked_cull_callback) == 0) {
216 return ((_flags & F_has_cull_callback) != 0);
229 if ((_flags & F_checked_adjust_transform) == 0) {
234 return ((_flags & F_has_adjust_transform) != 0);
bool has_cull_callback() const
This function is provided as an optimization, to speed up the render-time checking for the existance ...
bool empty() const
Returns true if the ordered vector is empty, false otherwise.
bool has_show_bounds() const
This function is provided as an optimization, to speed up the render-time checking for the existance ...
This is the base class for a number of special render effects that may be set on scene graph nodes to...
int get_num_effects() const
Returns the number of separate effects indicated in the state.
bool has_adjust_transform() const
This function is provided as an optimization, to speed up the render-time checking for the existance ...
const RenderEffect * get_effect(int n) const
Returns the nth effect in the state.
bool has_decal() const
This function is provided as an optimization, to speed up the render-time checking for the existance ...
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.
bool has_show_tight_bounds() const
If has_show_bounds() returns true, this will return true if the ShowBoundsEffect in question requests...
TypeHandle is the identifier used to differentiate C++ class types.
This represents a unique collection of RenderEffect objects that correspond to a particular renderabl...