Panda3D
Public Types | Public Member Functions | List of all members
SpriteAnim Class Reference

Helper class used by SpriteParticleRenderer to keep track of its textures and their respective UVs and source types. More...

Inheritance diagram for SpriteAnim:
ReferenceCount MemoryBase

Public Types

enum  SourceType { ST_texture = 0, ST_from_node = 1 }
 

Public Member Functions

str getModelSource ()
 
str getNodeSource ()
 
int getNumFrames ()
 
SpriteAnim::SourceType getSourceType ()
 
str getTexSource ()
 
 setSourceInfo (str tex)
 
 setSourceInfo (str model, str node)
 
- Public Member Functions inherited from ReferenceCount
int getRefCount ()
 Returns the current reference count. More...
 
 ref ()
 Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. More...
 
bool testRefCountIntegrity ()
 Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise. More...
 
bool testRefCountNonzero ()
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise. More...
 
bool unref ()
 Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic.) However, see the helper function unref_delete(). More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ReferenceCount
static TypeHandle getClassType ()
 

Detailed Description

Helper class used by SpriteParticleRenderer to keep track of its textures and their respective UVs and source types.

Member Enumeration Documentation

◆ SourceType

enum SourceType
Enumerator
ST_texture 
ST_from_node 

Member Function Documentation

◆ getModelSource()

str getModelSource ( )

◆ getNodeSource()

str getNodeSource ( )

◆ getNumFrames()

int getNumFrames ( )

◆ getSourceType()

SpriteAnim::SourceType getSourceType ( )

◆ getTexSource()

str getTexSource ( )

◆ setSourceInfo() [1/2]

setSourceInfo ( str  tex)

◆ setSourceInfo() [2/2]

setSourceInfo ( str  model,
str  node 
)