|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
An animated camera defined within an M2 model (e.g. portrait or character-info camera). More...
#include <ModelCamera.h>
Public Member Functions | |
| void | init (GameFile *f, ModelCameraDef &mcd, std::vector< uint32 > &global, std::string modelname) |
| Initialise from an M2 camera definition block. | |
| void | initv10 (GameFile *f, ModelCameraDefV10 &mcd, std::vector< uint32 > &global, std::string modelname) |
| Initialise from a v10 camera definition block. | |
| void | setup (size_t time=0) |
| Apply the camera transform at the given time. | |
| ModelCamera () | |
Public Attributes | |
| bool | ok |
| Whether this camera was successfully initialised. | |
| glm::vec3 | pos |
| glm::vec3 | target |
| Camera position and look-at target. | |
| float | nearclip |
| float | farclip |
| float | fov |
| Clipping planes and field of view. | |
| Animated< glm::vec3 > | tPos |
| Animated< glm::vec3 > | tTarget |
| Animated position and target tracks. | |
| Animated< float > | rot |
| Animated roll track. | |
An animated camera defined within an M2 model (e.g. portrait or character-info camera).
Definition at line 16 of file ModelCamera.h.
|
inline |
Definition at line 32 of file ModelCamera.h.
| void ModelCamera::init | ( | GameFile * | f, |
| ModelCameraDef & | mcd, | ||
| std::vector< uint32 > & | global, | ||
| std::string | modelname | ||
| ) |
Initialise from an M2 camera definition block.
Definition at line 7 of file ModelCamera.cpp.
| void ModelCamera::initv10 | ( | GameFile * | f, |
| ModelCameraDefV10 & | mcd, | ||
| std::vector< uint32 > & | global, | ||
| std::string | modelname | ||
| ) |
Initialise from a v10 camera definition block.
Definition at line 21 of file ModelCamera.cpp.
| void ModelCamera::setup | ( | size_t | time = 0 | ) |
Apply the camera transform at the given time.
Definition at line 35 of file ModelCamera.cpp.
| float ModelCamera::farclip |
Definition at line 21 of file ModelCamera.h.
| float ModelCamera::fov |
Clipping planes and field of view.
Definition at line 21 of file ModelCamera.h.
| float ModelCamera::nearclip |
Definition at line 21 of file ModelCamera.h.
| bool ModelCamera::ok |
Whether this camera was successfully initialised.
Definition at line 18 of file ModelCamera.h.
| glm::vec3 ModelCamera::pos |
Definition at line 20 of file ModelCamera.h.
| Animated<float> ModelCamera::rot |
Animated roll track.
Definition at line 23 of file ModelCamera.h.
| glm::vec3 ModelCamera::target |
Camera position and look-at target.
Definition at line 20 of file ModelCamera.h.
| Animated<glm::vec3> ModelCamera::tPos |
Definition at line 22 of file ModelCamera.h.
| Animated<glm::vec3> ModelCamera::tTarget |
Animated position and target tracks.
Definition at line 22 of file ModelCamera.h.