Aether3D
Game Engine
|
Contains meshes loaded from Aether3D's own .ae3d file format. More...
#include <Model.hpp>
Public Member Functions | |
virtual void | GetAABB (Vec3 &outMin, Vec3 &outMax) const =0 |
virtual std::vector< std::string > | GetMeshNames () const =0 |
virtual std::vector< std::string > | GetMeshJointNames (const std::string &meshName) const =0 |
virtual const std::string & | GetPath () const =0 |
virtual void | ApplyAnimation (int firstKeyFrame, int lastKeyFrame)=0 |
virtual Material * | GetMeshMaterial (const char *meshName)=0 |
virtual void | EnableWireframe (bool enable)=0 |
virtual void | SetMaterialForMesh (Material *material, const std::string &meshName)=0 |
virtual void | SetMaterialForMeshSubstring (Material *material, const std::string &meshNameSubstring)=0 |
Public Member Functions inherited from SceneGraphNode | |
SceneGraphNode () | |
virtual | ~SceneGraphNode () |
virtual bool | AddChild (SceneGraphNode *child) |
virtual bool | ContainsChild (const SceneGraphNode *node) const |
virtual void | FindFirstChildWithName (const char *name, SceneGraphNode **outNode) |
virtual void | SetLayerMask (unsigned mask) |
virtual void | SetName (const std::string &newName) |
virtual void | SetPosition (const Vec3 &aPosition) |
virtual void | SetRotation (const Quaternion &aRotation) |
virtual Quaternion | GetRotation () const |
virtual void | SetScale (float aScale) |
virtual float | GetScale () const |
virtual void | SolveMatrices () |
virtual SceneGraphNode * | Parent () |
virtual std::string | GetName () const |
virtual Type | GetType () const |
virtual unsigned | GetLayerMask () const |
virtual std::list< SceneGraphNode * > & | Children () |
virtual Vec3 | GetPosition () const |
virtual SceneGraphNode * | Root () |
void | CleanDirties () |
bool | IsDirty () const |
Additional Inherited Members | |
Public Types inherited from SceneGraphNode | |
enum | Type { None, Model, Camera, Light } |
Static Public Member Functions inherited from SceneGraphNode | |
static void | RegisterScene (Scene *scene) |
static void | UnregisterScene () |
Public Attributes inherited from SceneGraphNode | |
std::list< SceneGraphNode * > | children |
Matrix44 | modelMatrix |
Protected Attributes inherited from SceneGraphNode | |
Type | type |
float | scale |
Vec3 | position |
SceneGraphNode * | parent |
Quaternion | rotation |
std::string | name |
bool | dirtyTransform = true |
unsigned | layerMask = 0xFFFFFFFF |
Contains meshes loaded from Aether3D's own .ae3d file format.
|
pure virtual |
Applies skeletal or blendshape animation for all meshes. Use parameters 0, 0 to apply the whole animation.
firstKeyFrame | First key frame of the animation that is applied. |
lastKeyFrame | Last key frame of the animation that is applied. |
|
pure virtual |
enable | True, if the model should be rendered as a wireframe. |
outMin | Minimum corner of AABB in world-space. |
outMax | Maximum corner of AABB in world-space. |
|
pure virtual |
Gets joint names for a Mesh.
meshName | Mesh name. |
|
pure virtual |
Gets Mesh's material.
meshName | Mesh's name. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Sets a material for a mesh. If mesh is not found, does nothing.
material | Material. |
meshName | Mesh's name (case-sensitive). |
|
pure virtual |
Sets a material for meshes whose name contain meshNameSubstring. If meshes are not found, does nothing.
material | Material. |
meshNameSubstring | Part of mesh's name (case-sensitive). |