205 static void *
operator new(
size_t nSize);
214 static void operator delete(
void *pBlock);
262 unsigned char mReserved18[0x08];
282 unsigned char mReserved3c[0x04];
292 unsigned char mReserved54[0x0c];
316 void AcquireLightsRefs();
327 void ReleaseLightsRefs();
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Sink that the engine formats its diagnostic and failure text into.
Definition dbg.h:33
Drawable()
Construct a visible drawable with no children.
Lighting and fog a subtree is drawn under.
Definition environ.h:69
void RemoveAllLights()
Drop this environment's reference on every light and empty mLights.
FogMode mFogMode
Which fog model applies, or None for no fog at all.
Definition environ.h:289
std::list< Light * > mLights
Lights this environment applies to the subtree below it.
Definition environ.h:257
Color mFogColor
Colour a fully fogged pixel becomes.
Definition environ.h:286
float mFogEnd
Distance fog arrives at its full strength.
Definition environ.h:272
void AddLight(Light *pLight)
Append a light to mLights.
virtual void DumpText(Dbg &sink)
Write a description of this environment to sink.
virtual const HxStr & ClassName() const
Report the class key a .rnd file writes for an environment.
virtual int DrawShowing()
Make this environment the one the subtree below is drawn under.
static Environ * NewEnviron(const HxStr &name)
Build an environment the class registry vends.
float mFogStart
Distance fog starts at.
Definition environ.h:269
virtual void Save(Stream &stream)
Write this environment's serialised form to stream.
virtual void Copy(const Object *pSource, unsigned nFlags)
Copy the state of pSource into this environment.
static HxStr sClassName
Registered class name of Rnd::Environ, the string "Environ".
Definition environ.h:77
void RemoveLight(Light *pLight)
Remove a light from mLights.
static Environ * sCurrent
Environment the subtree being drawn is under.
Definition environ.h:88
Environ(const HxStr &name)
Construct an environment with no lights and no fog.
virtual void Replace(Object *pFrom, Object *pTo)
Repoint a light entry when the object it addressed is replaced.
Color mAmbient
Light every vertex receives regardless of the lights above.
Definition environ.h:266
float mFogDensity
Strength the exponential modes raise fog to.
Definition environ.h:279
virtual void Load(Stream &stream)
Read this environment's serialised form from stream.
Light in a scene.
Definition light.h:41
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
Environ *(* g_pfnNewEnviron)(const HxStr &name)
Factory the registered environment creator dispatches through.
Environ * NewEnvironThroughHook(const HxStr &name)
Build an environment through the creator hook.
void RegisterEnvironClass()
Point g_pfnNewEnviron at Environ::NewEnviron() and register the "Environ" class with Rnd::Manager.
Definition environ.h:380
FogMode
How fog attenuates a drawn pixel.
Definition environ.h:28
@ kFogModePixelExp2
Definition environ.h:34
@ kFogModeVertLinear
Definition environ.h:32
@ kFogModePixelExp
Definition environ.h:33
@ kFogModePixelLinear
Definition environ.h:35
@ kFogModeVertExp
Definition environ.h:30
@ kFogModeNone
Definition environ.h:29
@ kFogModeVertExp2
Definition environ.h:31
Manager TheManager
The renderer's object registry.
Object * CreateRegisteredEnviron(const HxStr &name)
Build an environment for the registered "Environ" class.
Linear colour with four float components.
Definition color.h:10