class
#include <nCine/Graphics/RenderCommandPool.h>
RenderCommandPool Creates and handles the pool of render commands.
Constructors, destructors, conversion operators
- RenderCommandPool(unsigned int poolSize) explicit
- ~RenderCommandPool()
Public functions
- auto add() -> RenderCommand*
- auto add(GLShaderProgram* shaderProgram) -> RenderCommand*
- Adds a new command with the specified OpenGL shader program to the used pool and returns its pointer.
- auto retrieve(GLShaderProgram* shaderProgram) -> RenderCommand*
- Retrieves a command with the specified OpenGL shader program.
- auto retrieveOrAdd(GLShaderProgram* shaderProgram, bool& commandAdded) -> RenderCommand*
- Retrieves (or adds) a command with the specified OpenGL shader program.
- void reset()
- Releases all used commands and returnsi them in the free array.
Function documentation
RenderCommand* nCine:: RenderCommandPool:: add()
RenderCommand* nCine:: RenderCommandPool:: add(GLShaderProgram* shaderProgram)
Adds a new command with the specified OpenGL shader program to the used pool and returns its pointer.