AuxSceneData

from panda3d.core import AuxSceneData
class AuxSceneData

Bases:

Bases: TypedReferenceCount

This is a base class for a generic data structure that can be attached per- instance to the camera, to store per-instance data that must be preserved over multiple frames.

In particular, this is used to implement the FadeLODNode, which must remember during traversal at what point it is in the fade, separately for each instance and for each camera.

Inheritance diagram

Inheritance diagram of AuxSceneData

__init__(param0: AuxSceneData)
static get_class_type() TypeHandle
get_duration() float

Returns the minimum length in time, in seconds, to keep this AuxSceneData object around in the scene graph after the last time it was rendered.

get_expiration_time() float

Returns the frame_time at which this AuxSceneData object is currently scheduled to be removed from the scene graph.

get_last_render_time() float

Returns the last time this object was used during traversal (according to set_last_render_time()).

output(out: ostream)
set_duration(duration: float)

Specifies the minimum length in time, in seconds, to keep this AuxSceneData object around in the scene graph after the last time it was rendered.

set_last_render_time(render_time: float)

Should be called with the current frame_time each time the AuxSceneData is used during traversal.

write(out: ostream, indent_level: int)