ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <modelx.h>

Inheritance diagram for Wintermute::ModelX:
Collaboration diagram for Wintermute::ModelX:

List of all members.

Classes

class  ModelXMatSprite

Public Member Functions

 ModelX (BaseGame *inGame, BaseObject *owner)
virtual ~ModelX ()
bool loadFromFile (const Common::String &filename, ModelX *parentModel=nullptr)
bool mergeFromFile (const Common::String &filename)
bool update () override
bool render ()
bool reset ()
bool updateShadowVol (ShadowVolume *shadow, Math::Matrix4 &modelMat, const Math::Vector3d &light, float extrusionDepth)
bool playAnim (int channel, const Common::String &anim, uint32 transitionTime=0, bool forceReset=false, uint32 stopTransitionTime=0)
bool isAnimPending (char *animName=nullptr)
bool isAnimPending (int channel, const char *animName=nullptr)
bool isTransparentAt (int x, int y)
bool loadAnimationSet (XFileLexer &lexer, const Common::String &filename)
bool loadAnimation (const Common::String &filename, AnimationSet *parentAnimSet)
bool parseAnim (byte *buffer)
bool parseEvent (AnimationSet *anim, byte *buffer)
AnimationSetgetAnimationSetByName (const Common::String &name)
bool stopAnim (int channel, uint32 transitionTime)
bool stopAnim (uint32 transitionTime)
Math::Matrix4getBoneMatrix (const char *boneName)
FrameNodegetRootFrame ()
bool setMaterialSprite (const char *materialName, const char *spriteFilename)
bool setMaterialTheora (const char *materialName, const char *theoraFilename)
bool initializeSimple ()
virtual bool invalidateDeviceObjects () override
virtual bool restoreDeviceObjects () override
bool unloadAnimation (const char *animName)

Public Attributes

ModelX_parentModel
Math::Matrix4 _lastWorldMat
Rect32 _boundingRect
BaseObject_owner
uint32 _ticksPerSecond
BaseArray< AnimationSet * > _animationSets

Static Public Attributes

static const int kDefaultTicksPerSecond = 4800

Protected Attributes

BaseArray< const char * > _mergedModels
AnimationChannel_channels [X_NUM_ANIMATION_CHANNELS]
FrameNode_rootFrame
BaseArray< ModelXMatSprite * > _matSprites

Private Member Functions

void cleanup (bool complete=true)
bool findBones (bool animOnly=false, ModelX *parentModel=nullptr)
void parseFrameDuringMerge (XFileLexer &lexer, const Common::String &filename)
void updateBoundingRect ()

Static Private Member Functions

static void updateRect (Rect32 *rc, int x, int y)

Private Attributes

Rect32 _drawingViewport
Math::Matrix4 _lastViewMat
Math::Matrix4 _lastProjMat
int _lastOffsetX
int _lastOffsetY
Math::Vector3d _BBoxStart
Math::Vector3d _BBoxEnd
Common::Array< MaterialReference_materialReferences

Detailed Description

Definition at line 57 of file modelx.h.


Constructor & Destructor Documentation

Wintermute::ModelX::ModelX ( BaseGame inGame,
BaseObject owner 
)

Definition at line 68 of file modelx.cpp.

Wintermute::ModelX::~ModelX (  )  [virtual]

Definition at line 86 of file modelx.cpp.


Member Function Documentation

void Wintermute::ModelX::cleanup ( bool  complete = true  )  [private]

Definition at line 91 of file modelx.cpp.

bool Wintermute::ModelX::findBones ( bool  animOnly = false,
ModelX parentModel = nullptr 
) [private]

Definition at line 236 of file modelx.cpp.

AnimationSet * Wintermute::ModelX::getAnimationSetByName ( const Common::String name  ) 

Definition at line 515 of file modelx.cpp.

Math::Matrix4 * Wintermute::ModelX::getBoneMatrix ( const char *  boneName  ) 

Definition at line 421 of file modelx.cpp.

FrameNode * Wintermute::ModelX::getRootFrame (  ) 

Definition at line 432 of file modelx.cpp.

bool Wintermute::ModelX::initializeSimple (  ) 

Definition at line 711 of file modelx.cpp.

bool Wintermute::ModelX::invalidateDeviceObjects (  )  [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 833 of file modelx.cpp.

bool Wintermute::ModelX::isAnimPending ( int  channel,
const char *  animName = nullptr 
)

Definition at line 351 of file modelx.cpp.

bool Wintermute::ModelX::isAnimPending ( char *  animName = nullptr  ) 

Definition at line 365 of file modelx.cpp.

bool Wintermute::ModelX::isTransparentAt ( int  x,
int  y 
)

Definition at line 437 of file modelx.cpp.

bool Wintermute::ModelX::loadAnimation ( const Common::String filename,
AnimationSet parentAnimSet 
)

Definition at line 210 of file modelx.cpp.

bool Wintermute::ModelX::loadAnimationSet ( XFileLexer lexer,
const Common::String filename 
)

Definition at line 194 of file modelx.cpp.

bool Wintermute::ModelX::loadFromFile ( const Common::String filename,
ModelX parentModel = nullptr 
)

Definition at line 136 of file modelx.cpp.

bool Wintermute::ModelX::mergeFromFile ( const Common::String filename  ) 

Definition at line 163 of file modelx.cpp.

TOKEN_DEF_START TOKEN_DEF_END bool Wintermute::ModelX::parseAnim ( byte buffer  ) 

Definition at line 532 of file modelx.cpp.

bool Wintermute::ModelX::parseEvent ( AnimationSet anim,
byte buffer 
)

Definition at line 596 of file modelx.cpp.

void Wintermute::ModelX::parseFrameDuringMerge ( XFileLexer lexer,
const Common::String filename 
) [private]

Definition at line 254 of file modelx.cpp.

bool Wintermute::ModelX::playAnim ( int  channel,
const Common::String anim,
uint32  transitionTime = 0,
bool  forceReset = false,
uint32  stopTransitionTime = 0 
)

Definition at line 293 of file modelx.cpp.

bool Wintermute::ModelX::render (  ) 

Definition at line 384 of file modelx.cpp.

bool Wintermute::ModelX::reset (  ) 

Definition at line 342 of file modelx.cpp.

bool Wintermute::ModelX::restoreDeviceObjects (  )  [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 842 of file modelx.cpp.

bool Wintermute::ModelX::setMaterialSprite ( const char *  materialName,
const char *  spriteFilename 
)

Definition at line 638 of file modelx.cpp.

bool Wintermute::ModelX::setMaterialTheora ( const char *  materialName,
const char *  theoraFilename 
)

Definition at line 673 of file modelx.cpp.

bool Wintermute::ModelX::stopAnim ( int  channel,
uint32  transitionTime 
)

Definition at line 322 of file modelx.cpp.

bool Wintermute::ModelX::stopAnim ( uint32  transitionTime  ) 

Definition at line 331 of file modelx.cpp.

bool Wintermute::ModelX::unloadAnimation ( const char *  animName  ) 

Definition at line 851 of file modelx.cpp.

bool Wintermute::ModelX::update (  )  [override, virtual]

Reimplemented from Wintermute::BaseObject.

Definition at line 271 of file modelx.cpp.

void Wintermute::ModelX::updateBoundingRect (  )  [private]

Definition at line 456 of file modelx.cpp.

void Wintermute::ModelX::updateRect ( Rect32 rc,
int  x,
int  y 
) [inline, static, private]

Definition at line 507 of file modelx.cpp.

bool Wintermute::ModelX::updateShadowVol ( ShadowVolume shadow,
Math::Matrix4 modelMat,
const Math::Vector3d light,
float  extrusionDepth 
)

Definition at line 375 of file modelx.cpp.


Member Data Documentation

Definition at line 204 of file modelx.h.

Definition at line 203 of file modelx.h.

AnimationChannel* Wintermute::ModelX::_channels[X_NUM_ANIMATION_CHANNELS] [protected]

Definition at line 210 of file modelx.h.

Definition at line 197 of file modelx.h.

Definition at line 200 of file modelx.h.

Definition at line 201 of file modelx.h.

Definition at line 199 of file modelx.h.

Definition at line 198 of file modelx.h.

Definition at line 214 of file modelx.h.

BaseArray<const char*> Wintermute::ModelX::_mergedModels [protected]

Definition at line 209 of file modelx.h.

Definition at line 164 of file modelx.h.

Definition at line 142 of file modelx.h.

Definition at line 212 of file modelx.h.

const int Wintermute::ModelX::kDefaultTicksPerSecond = 4800 [static]

Definition at line 135 of file modelx.h.


The documentation for this class was generated from the following files:


Generated on Sat Sep 19 2020 05:06:30 for ResidualVM by doxygen 1.7.1
curved edge   curved edge