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

Public Types

enum  SourceType { ST_texture = 0, ST_from_node = 1 }
 

Public Member Functions

 __init__ (const SpriteAnim)
 
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. More...
 
bool testRefCountIntegrity ()
 Does some easy checks to make sure that the reference count isn't completely bogus. More...
 
bool testRefCountNonzero ()
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More...
 
bool unref ()
 Explicitly decrements the reference count. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ReferenceCount
static TypeHandle getClassType ()
 
- Public Attributes inherited from ReferenceCount
int ref_count
 The current reference count. More...
 

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

◆ __init__()

__init__ ( const  SpriteAnim)

◆ 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 
)