#include <Md3Player.h>
Classes | |
struct | Md3AnimState |
Public Types | |
typedef map< string, Md3PlayerSkinPtr > | SkinMap |
Public Member Functions | |
Md3Player (const string &path, Md3PlayerLOD lod=kLodDefault) | |
~Md3Player () | |
void | draw () const |
void | renderFrame (int upperFrame, int lowerFrame) const |
void | animate (float dt) |
void | setScale (float scale) |
void | setAnimation (Md3PlayerAnimType type) |
void | setSkin (const string &name) |
void | linkWeapon (Md3Weapon *weapon) |
void | unlinkWeapon () |
float | scale () const |
const string & | path () const |
const string & | name () const |
Md3PlayerLOD | lod () const |
const SkinMap & | skins () const |
const string & | skinName () const |
void | getAnimationState (eAnimationArea area, Md3AnimState_t &state) |
void | setAnimationState (eAnimationArea area, const Md3AnimState_t &state) |
Definition at line 229 of file Md3Player.h.
typedef map<string, Md3PlayerSkinPtr> Md3Player::SkinMap |
Definition at line 263 of file Md3Player.h.
Md3Player::Md3Player | ( | const string & | path, | |
Md3PlayerLOD | lod = kLodDefault | |||
) |
Definition at line 369 of file Md3Player.cpp.
Md3Player::~Md3Player | ( | ) |
Definition at line 397 of file Md3Player.cpp.
void Md3Player::draw | ( | ) | const |
Definition at line 409 of file Md3Player.cpp.
void Md3Player::renderFrame | ( | int | upperFrame, | |
int | lowerFrame | |||
) | const |
Definition at line 457 of file Md3Player.cpp.
void Md3Player::animate | ( | float | dt | ) |
Definition at line 499 of file Md3Player.cpp.
void Md3Player::setScale | ( | float | scale | ) | [inline] |
Definition at line 271 of file Md3Player.h.
void Md3Player::setAnimation | ( | Md3PlayerAnimType | type | ) |
Definition at line 513 of file Md3Player.cpp.
void Md3Player::setSkin | ( | const string & | name | ) |
Definition at line 539 of file Md3Player.cpp.
void Md3Player::linkWeapon | ( | Md3Weapon * | weapon | ) |
Definition at line 561 of file Md3Player.cpp.
void Md3Player::unlinkWeapon | ( | ) |
Definition at line 577 of file Md3Player.cpp.
float Md3Player::scale | ( | ) | const [inline] |
Definition at line 279 of file Md3Player.h.
const string& Md3Player::path | ( | ) | const [inline] |
Definition at line 280 of file Md3Player.h.
const string& Md3Player::name | ( | ) | const [inline] |
Definition at line 281 of file Md3Player.h.
Md3PlayerLOD Md3Player::lod | ( | ) | const [inline] |
Definition at line 282 of file Md3Player.h.
const SkinMap& Md3Player::skins | ( | ) | const [inline] |
Definition at line 283 of file Md3Player.h.
const string& Md3Player::skinName | ( | ) | const [inline] |
Definition at line 284 of file Md3Player.h.
void Md3Player::getAnimationState | ( | eAnimationArea | area, | |
Md3AnimState_t & | state | |||
) |
Definition at line 597 of file Md3Player.cpp.
void Md3Player::setAnimationState | ( | eAnimationArea | area, | |
const Md3AnimState_t & | state | |||
) |
Definition at line 632 of file Md3Player.cpp.