32 #ifndef MorphingCallback_INCLUDE_ONCE 33 #define MorphingCallback_INCLUDE_ONCE 40 class ResourceDatabase;
53 virtual void onActorRenderStarted(
Actor* actor, real frame_clock,
const Camera* cam,
Renderable* renderable,
const Shader*,
int pass);
57 void bindActor(
Actor* actor);
71 void blendFrames(
int a,
int b,
float t);
73 void setAnimation(
int start,
int end,
float period);
75 void startAnimation(real time = -1);
81 void resetGLSLBindings();
Associates a Renderable object to an Effect and Transform.
std::vector< ref< ArrayFloat3 > > mNormalFrames
bool animationStarted() const
ref< ArrayFloat3 > mNormals
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
The Geometry class is a Renderable that implements a polygonal mesh made of polygons, lines and points.
Visualization Library main namespace.
ref< Geometry > mGeometry
void setGLSLVertexBlendEnabled(bool enable)
bool mGLSLVertexBlendEnabled
An abstract class that represents all the objects that can be rendered.
bool glslVertexBlendEnabled() const
std::vector< ref< ArrayFloat3 > > mVertexFrames
The ActorEventCallback class defines a callback object to react to Actor-related events.
Manages most of the OpenGL rendering states responsible of the final aspect of the rendered objects...
virtual void onActorDelete(Actor *)
Event notifying that an Actor is being deleted.
#define VLGRAPHICS_EXPORT
ref< ArrayFloat3 > mVertices
The MorphingCallback class implements a simple morphing animation mechanism using the GPU acceleratio...
The ref<> class is used to reference-count an Object.
const Geometry * geometry() const
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
The ResourceDatabase class contains and manipulates a set of resources.