320 void AcquireObjectRefs();
330 void ReleaseObjectRefs();
396extern Blur *(*g_pfnNewBlur)(
const HxStr &name);
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Motion trail that redraws one drawable at the transforms it recently occupied.
Definition blur.h:39
static void Init()
Install the trail factory and register the class key with Rnd::TheManager.
static Blur * Find(const HxStr &name)
Resolve a registry key to a trail.
virtual void Load(Stream &stream)
Read this trail's serialised form from stream.
void SetMesh(Mesh *pMesh)
Set the mesh the trail is drawn from and discard the recorded transforms.
void SetFalloff(float flFalloff)
Set the fraction of the subject's alpha the oldest trail step is drawn with.
int GetRate() const
Report how many frames pass between two recorded transforms.
int GetLength() const
Report how many transforms the trail records.
void SetText(Text *pText)
Set the text the trail is drawn from and discard the recorded transforms.
float GetFalloff() const
Report the alpha fraction of the oldest trail step.
Mesh * GetMesh() const
Report the mesh the trail is drawn from.
virtual void Copy(const Object *pSource, unsigned nFlags)
Copy the state of pSource into this trail.
virtual void DumpText(Dbg &sink)
Write a description of this trail to sink.
Text * GetText() const
Report the text the trail is drawn from.
virtual const HxStr & ClassName() const
Report the class key a .rnd file writes for a trail.
static Blur * NewBlur(const HxStr &name)
Build a trail the class registry vends.
virtual void Save(Stream &stream)
Write this trail's serialised form to stream.
void SetRate(int nRate)
Set how many frames pass between two recorded transforms and discard the recorded ones.
static Blur * NewFromHook(const HxStr &name)
Build a trail through g_pfnNewBlur.
virtual int DrawShowing()
Draw the subject at its own transform, then once per recorded transform.
virtual void Replace(Object *pFrom, Object *pTo)
Repoint a subject when the object it addressed is replaced.
Blur(const HxStr &name)
Construct a trail with no subject.
std::list< Xfm > mXfms
The transforms recorded for the trail.
Definition blur.h:357
void SetLength(int nLength)
Set how many transforms the trail records and discard the recorded transforms.
Sink that the engine formats its diagnostic and failure text into.
Definition dbg.h:33
Drawable()
Construct a visible drawable with no children.
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
Run of text drawn as a quad per glyph.
Definition text.h:57
The rendering engine.
Definition animhelper.h:3
constexpr int kXfmRowFloatCount
Floats in one transform row.
Definition transformable.h:15
constexpr int kXfmRowCount
Rows in one transform.
Definition transformable.h:12
HxStr g_blurClassName
Class key a .rnd file writes for a trail.
int g_nRndBlurLoadRevision
Revision word the reader of the .rnd container has most recently consumed.
One recorded transform.
Definition blur.h:49
float m[kXfmRowCount][kXfmRowFloatCount]
Definition blur.h:50