RenderEffects
from panda3d.core import RenderEffects
- class RenderEffects
Bases:
TypedWritableReferenceCount
This represents a unique collection of RenderEffect objects that correspond to a particular renderable state.
You should not attempt to create or modify a RenderEffects object directly. Instead, call one of the make() functions to create one for you. And instead of modifying a RenderEffects object, create a new one.
Inheritance diagram
- __init__(*args, **kwargs)
- addEffect()
C++ Interface: add_effect(RenderEffects self, const RenderEffect effect)
- /**
Returns a new RenderEffects object that represents the same as the source
state, with the new RenderEffect added. If there is already a RenderEffect
with the same type, it is replaced.
*/
- add_effect()
C++ Interface: add_effect(RenderEffects self, const RenderEffect effect)
- /**
Returns a new RenderEffects object that represents the same as the source
state, with the new RenderEffect added. If there is already a RenderEffect
with the same type, it is replaced.
*/
- findEffect()
C++ Interface: find_effect(RenderEffects self, TypeHandle type)
- /**
Searches for an effect with the indicated type in the state, and returns
its index if it is found, or -1 if it is not.
*/
- find_effect()
C++ Interface: find_effect(RenderEffects self, TypeHandle type)
- /**
Searches for an effect with the indicated type in the state, and returns
its index if it is found, or -1 if it is not.
*/
- getClassType()
C++ Interface: get_class_type()
- getEffect()
C++ Interface: get_effect(RenderEffects self, TypeHandle type) get_effect(RenderEffects self, int n)
- getNumEffects()
C++ Interface: get_num_effects(RenderEffects self)
- /**
Returns the number of separate effects indicated in the state.
@deprecated in Python, use len(effects) instead, or effects.size() in C++.
*/
- getNumStates()
C++ Interface: get_num_states()
- /**
Returns the total number of unique RenderEffects objects allocated in the
world. This will go up and down during normal operations.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_effect()
C++ Interface: get_effect(RenderEffects self, TypeHandle type) get_effect(RenderEffects self, int n)
- get_num_effects()
C++ Interface: get_num_effects(RenderEffects self)
- /**
Returns the number of separate effects indicated in the state.
@deprecated in Python, use len(effects) instead, or effects.size() in C++.
*/
- get_num_states()
C++ Interface: get_num_states()
- /**
Returns the total number of unique RenderEffects objects allocated in the
world. This will go up and down during normal operations.
*/
- isEmpty()
C++ Interface: is_empty(RenderEffects self)
- /**
Returns true if the state is empty, false otherwise.
*/
- is_empty()
C++ Interface: is_empty(RenderEffects self)
- /**
Returns true if the state is empty, false otherwise.
*/
- listStates()
C++ Interface: list_states(ostream out)
- /**
Lists all of the RenderEffects in the cache to the output stream, one per
line. This can be quite a lot of output if the cache is large, so be
prepared.
*/
- list_states()
C++ Interface: list_states(ostream out)
- /**
Lists all of the RenderEffects in the cache to the output stream, one per
line. This can be quite a lot of output if the cache is large, so be
prepared.
*/
- make()
C++ Interface: make(const RenderEffect effect) make(const RenderEffect effect1, const RenderEffect effect2) make(const RenderEffect effect1, const RenderEffect effect2, const RenderEffect effect3) make(const RenderEffect effect1, const RenderEffect effect2, const RenderEffect effect3, const RenderEffect effect4)
- removeEffect()
C++ Interface: remove_effect(RenderEffects self, TypeHandle type)
- /**
Returns a new RenderEffects object that represents the same as the source
state, with the indicated RenderEffect removed.
*/
- remove_effect()
C++ Interface: remove_effect(RenderEffects self, TypeHandle type)
- /**
Returns a new RenderEffects object that represents the same as the source
state, with the indicated RenderEffect removed.
*/
- validateStates()
C++ Interface: validate_states()
- /**
Ensures that the cache is still stored in sorted order. Returns true if
so, false if there is a problem (which implies someone has modified one of
the supposedly-const RenderEffects objects).
*/