75 void ReleaseObjects();
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Animatable()
Construct an animatable with no children, no filters, and a zero frame.
Sink that the engine formats its diagnostic and failure text into.
Definition dbg.h:33
Per-vertex animation of one mesh.
Definition meshanim.h:45
virtual void Load(Stream &stream)
Load the animation.
virtual const HxStr & ClassName() const
Return the registered class name, "MeshAnim".
virtual float FilteredFrameEnd()
Report the frame of the last keyframe across the three channels.
virtual void Copy(const Object *pSource, unsigned nFlags)
Copy another animation over this one.
virtual void Save(Stream &stream)
Serialise the animation.
void SetKeysOwner(MeshAnim *pOwner)
Make another animation the one whose channels drive this one.
MeshAnim(const HxStr &name)
Construct an animation with no keyframes that owns its own channels.
virtual void SetFrameSelf(float flFrame)
Interpolate the three channels at a frame and write the result into the mesh.
virtual void Replace(Object *pFrom, Object *pTo)
Replace one object reference with another.
std::list< ColorsKey > mVertColorsKeys
Colour keyframes.
Definition meshanim.h:281
void AppendVertKeys(int nVert)
Append a copy of one vertex slot to every keyframe of all three channels.
MeshAnim * mKeysOwner
Definition meshanim.h:286
@ kSerialVersion
Definition meshanim.h:85
void CopyVertKeys(int nFromVert, int nToVert)
Copy one vertex slot over another in every keyframe of all three channels.
std::list< PointsKey > mVertPointsKeys
Position keyframes.
Definition meshanim.h:277
void SetMesh(Mesh *pMesh)
Change the mesh this animation deforms.
virtual void DumpText(Dbg &sink)
Write the animation to the engine text sink.
std::list< TexsKey > mVertTexsKeys
Texture coordinate keyframes.
Definition meshanim.h:279
@ kCopyShareKeys
Definition meshanim.h:93
Indexed triangle mesh with one material.
Definition mesh.h:46
Base of every object the renderer can load, resolve by name, and serialise.
Definition object.h:43
Byte stream that every renderer object serialises itself through.
Definition stream.h:31
The rendering engine.
Definition animhelper.h:3
Object * CreateRegisteredMeshAnim(const HxStr &name)
Allocate and construct a mesh animation for the registered "MeshAnim" class.
Manager TheManager
The renderer's object registry.
void RegisterMeshAnimClass()
Register the "MeshAnim" class with Rnd::Manager.
Definition meshanim.h:349
MeshAnim * NewMeshAnim(const HxStr &name)
Allocate and construct a mesh animation, without the narrowing CreateRegisteredMeshAnim() performs.
HxStr g_meshAnimClassName
Registered class name of Rnd::MeshAnim, the string "MeshAnim".
One keyframe of the vertex colour channel.
Definition meshanim.h:114
float mFrame
Definition meshanim.h:116
std::vector< Color > mValues
Definition meshanim.h:115
One keyframe of the vertex position channel.
Definition meshanim.h:102
float mFrame
Definition meshanim.h:104
std::vector< Vector3 > mValues
Definition meshanim.h:103
One keyframe of the first texture coordinate channel.
Definition meshanim.h:108
std::vector< Vector2 > mValues
Definition meshanim.h:109
float mFrame
Definition meshanim.h:110