The MorphingActor class animates a Geometry by interpolating its position and normal array.
More...
#include <MorphingActor.hpp>
List of all members.
Detailed Description
The MorphingActor class animates a Geometry by interpolating its position and normal array.
Constructor & Destructor Documentation
| MorphingActor::MorphingActor |
( |
) |
|
Member Function Documentation
| virtual const char* vl::MorphingActor::className |
( |
) |
[inline, virtual] |
Returns the name of the class.
Reimplemented from vl::Actor.
Initializes a MorphingActor from a ResourceDatabase.
The given ResourceDatabase must contain a Geometry with all the desired DrawCalls and vertex attributes setup with the exception of the vertex position array and vertex normal array since they are automatically generated in realtime time during the rendering from the vertex and normal frames specified below. In addition ResourceDatabase must contain:
- N ArrayFVec3 objects named 'vertex_frame' containing the vertex position for every frame
- N ArrayFVec3 objects named 'normal_frame' containing the vertex normal for every frame where N is the number of animation frames.
| void MorphingActor::blendFrames |
( |
int |
a, |
|
|
int |
b, |
|
|
float |
t |
|
) |
| |
| void MorphingActor::update |
( |
int |
, |
|
|
Camera * |
, |
|
|
Real |
|
|
) |
| [virtual] |
Virtual function used to update or animate an Actor during the rendering.
- Parameters:
-
| lod | the LOD (level of detail) currently selected for the rendering. |
| camera | the camera used for the current rendering. |
| cur_t | the current animation time. |
- Note:
- is called after the actor resulted to be visible
- is called only once per frame
- is called before setting up the rendering states
- See also:
-
Reimplemented from vl::Actor.
| void MorphingActor::setAnimation |
( |
int |
start, |
|
|
int |
end, |
|
|
float |
period |
|
) |
| |
| void MorphingActor::startAnimation |
( |
Real |
time = -1 ) |
|
| void MorphingActor::stopAnimation |
( |
) |
|
| void MorphingActor::resetGLSLBindings |
( |
) |
|
| bool vl::MorphingActor::glslVertexBlendEnabled |
( |
) |
const [inline] |
| void vl::MorphingActor::setGLSLVertexBlendEnabled |
( |
bool |
enable ) |
[inline] |
| Geometry* vl::MorphingActor::geometry |
( |
) |
[inline] |
| const Geometry* vl::MorphingActor::geometry |
( |
) |
const [inline] |
| bool vl::MorphingActor::animationStarted |
( |
) |
const [inline] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files: