A batch of frame callbacks.
Definition frameevent.h:73
void ExecuteAsync(World *world)
Definition frameevent.cc:302
Util::Array< Processor * > processors
Definition frameevent.h:107
int order
sorting order in frame event
Definition frameevent.h:98
void Execute(World *world)
Definition frameevent.cc:171
bool async
Definition frameevent.h:99
void CacheTable(MemDb::TableId, MemDb::TableSignature const &)
add a table to the cache of any processors that accepts it, that is attached to this frame batch
Definition frameevent.cc:262
void Prefilter(World *world, bool force=false)
prefilter all processors. Should not be done per frame - instead use CacheTable if you need to do inc...
Definition frameevent.cc:244
void ExecuteSequential(World *world)
Definition frameevent.cc:379
bool TryInsert(Processor *processor)
Try to insert a processor into the batch.
Definition frameevent.cc:187
bool TryRemove(Processor *processor)
Tries to remove a processor from the batch, if it exists in the batch.
Definition frameevent.cc:226
Util::Array< Processor const * > GetProcessors() const
Definition frameevent.cc:287
void AddProcessor(Processor *processor)
Adds a processor to the frame event.
Definition frameevent.cc:69
Util::Array< Batch const * > const GetBatches() const
Definition frameevent.cc:145
int order
Definition frameevent.h:53
Util::Array< Batch * > batches
Batches that this event will execute.
Definition frameevent.h:64
FramePipeline * pipeline
Which pipeline is this event attached to.
Definition frameevent.h:61
void CacheTable(MemDb::TableId, MemDb::TableSignature const &)
add a table to the caches of any processors that accepts it, that is attached to this frame event
Definition frameevent.cc:133
void RemoveProcessor(Processor *processor)
Removes a processor for the frame event. Does not free the memory, you need to handle this yourself.
Definition frameevent.cc:104
void Run(World *world)
Runs the frame event.
Definition frameevent.cc:50
friend FramePipeline
Definition frameevent.h:58
void Prefilter(World *world, bool force=false)
prefilter all processors. Should not be done per frame - instead use CacheTable if you need to do inc...
Definition frameevent.cc:121
Util::StringAtom name
Definition frameevent.h:52
volatile bool inAsync
Definition frameevent.h:151
Util::Array< FrameEvent const * > const GetFrameEvents() const
Definition frameevent.cc:574
void RunRemaining()
Run until the pipeline ends.
Definition frameevent.cc:527
void Prefilter(bool force=false)
prefilter all processors. Should not be done per frame - instead use CacheTable if you need to do inc...
Definition frameevent.cc:550
void Reset()
Reset the pipeline to the start.
Definition frameevent.cc:499
void Begin()
Start running the pipeline.
Definition frameevent.cc:481
friend FrameEvent
Definition frameevent.h:147
IndexT currentIndex
Definition frameevent.h:152
bool isRunning
Definition frameevent.h:150
bool IsRunningAsync()
check if the pipeline is currently executing an async frame event batch
Definition frameevent.cc:541
World * world
Definition frameevent.h:149
Util::Array< FrameEvent * > frameEvents
Definition frameevent.h:153
void CacheTable(MemDb::TableId, MemDb::TableSignature const &)
add a table to the caches of any processors that accepts it, that is attached to this frame event
Definition frameevent.cc:562
FrameEvent * GetFrameEvent(Util::StringAtom name)
Definition frameevent.cc:465
void End()
Stop running the pipeline.
Definition frameevent.cc:492
void RunThru(Util::StringAtom name)
Run and execute until a certain event is executed (inclusive).
Definition frameevent.cc:508
FrameEvent * RegisterFrameEvent(int order, Util::StringAtom name)
Definition frameevent.cc:432
Definition processor.h:31
A container of entities, their components, and processors.
Definition world.h:85
Basically a bitfield with packed ComponentIds.
Definition tablesignature.h:26
Nebula's dynamic array class.
Definition array.h:61
A StringAtom.
Definition stringatom.h:22
Resolves local hierarchical transforms into the mandatory world transform components.
Definition graphicsmanager.h:66
This represents a "view" into an entity table.
Definition dataset.h:35
Definition frameevent.h:25
ProcessorJobInput * inputs
Definition frameevent.h:27
Game::World * world
Definition frameevent.h:26
Table identifier.
Definition tableid.h:14
int IndexT
Definition types.h:41