co_ecs 0.9.0
Cobalt ECS
Loading...
Searching...
No Matches
co_ecs::command_buffer Class Reference

This class manages command buffers and facilitates command execution. More...

#include <command.hpp>

Static Public Member Functions

static auto get () -> command_buffer &
 Retrieves the thread-local command buffer instance.
 
static void flush (registry &registry)
 Flushes all commands in the command buffers to the given registry.
 

Friends

class command_writer
 
class command_entity_ref
 

Detailed Description

This class manages command buffers and facilitates command execution.

Command buffer manages a list of commands to be executed on the registry. It has a thread local container for encoding incomming commands as well as a storage used as a temporary staging buffer that holds associated data (like entity components)

Member Function Documentation

◆ flush()

static void co_ecs::command_buffer::flush ( registry & registry)
inlinestatic

Flushes all commands in the command buffers to the given registry.

Parameters
registryReference to the registry object to synchronize with.

◆ get()

static auto co_ecs::command_buffer::get ( ) -> command_buffer&
inlinestatic

Retrieves the thread-local command buffer instance.

Returns
Reference to the thread-local command buffer.

Friends And Related Symbol Documentation

◆ command_entity_ref

friend class command_entity_ref
friend

◆ command_writer

friend class command_writer
friend

The documentation for this class was generated from the following file: