121 static void *
operator new(
size_t nSize) {
132 static void operator delete(
void *pBlock) {
200 void HarvestLoadedObjects();
203 std::list<Rnd::Object *> mLoadedObjects;
int g_nRndLoaderZone
Zone the file reads are allocated from, kNoZone until the first Enqueue().
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Request to load one renderer file in the background.
Definition asyncloader.h:29
static void PollAsyncLoads()
Advance every queued load request.
int Poll(float *pfProgress)
Test whether this request has finished and report how far it has advanced.
std::list< Rnd::Object * > mObjects
The objects the request has produced so far.
Definition asyncloader.h:177
void Cancel()
Abandon this request.
RndAsyncLoader()
Prepare an empty request with no directory or file.
int mPending
Starts set and reports no progress while it stays set.
Definition asyncloader.h:214
RndAsyncLoader(const HxStr &directory, const HxStr &file, int nZone)
Prepare a load request.
~RndAsyncLoader()
Release the request and any partially loaded data.
std::list< Rnd::Drawable * > mDrawables
Drawables the container load produced.
Definition asyncloader.h:188
void Enqueue()
Add this request to the load queue.
void Unload()
Abandon this request and release everything it has loaded, leaving it ready to start again.
void Restart(const HxStr &directory, const HxStr &file)
Abandon this request and point it at another file.
Mix-in for an object that draws itself and then a list of other drawables.
Definition drawable.h:32
Base of every object the renderer can load, resolve by name, and serialise.
Definition object.h:43
void OperatorDeleteOverride(void *pBlock, const char *pszClass)
Release a block that AllocateTaggedMemory() handed out.
void * AllocateTaggedMemory(size_t nSize, const char *pszClass)
Allocate a block for one object of a named class.
The rendering engine.
Definition animhelper.h:3
One file read in flight, 0x10 bytes.
Definition asyncloader.h:230
void * mBuffer
Definition asyncloader.h:233
int mLength
Definition asyncloader.h:234
int mHandle
Definition asyncloader.h:232
RndAsyncLoader * mRequest
Definition asyncloader.h:231