API Documentation
Public Member Functions | List of all members
nkGraphics::RenderCommandQueue Class Referencefinal

A queue of rendering commands. More...

Public Member Functions

 RenderCommandQueue () noexcept
 
nkMemory::BufferView< RenderCommandgetCommands () const
 
void addCommand (const RenderCommand &command)
 
void reset ()
 

Detailed Description

A queue of rendering commands.

Constructor & Destructor Documentation

◆ RenderCommandQueue()

nkGraphics::RenderCommandQueue::RenderCommandQueue ( )
noexcept

Default constructor.

Member Function Documentation

◆ getCommands()

nkMemory::BufferView<RenderCommand> nkGraphics::RenderCommandQueue::getCommands ( ) const
Returns
A view over the buffer of command internally held.

◆ addCommand()

void nkGraphics::RenderCommandQueue::addCommand ( const RenderCommand command)

Allows to add a new command to the buffer.

Parameters
commandThe command to add.

◆ reset()

void nkGraphics::RenderCommandQueue::reset ( )

Resets the queue to make it ready to start over.

Remarks
This method allows to keep the internal memory, effectively making it reusable.

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