Factory that provides CBufferObject registration and creation.
More...
#include <BufferObjectFactory.h>
Factory that provides CBufferObject registration and creation.
◆ ClearBufferObjects()
void CBufferObjectFactory::ClearBufferObjects |
( |
| ) |
|
|
static |
◆ CreateBufferObject()
std::unique_ptr< CBufferObject > CBufferObjectFactory::CreateBufferObject |
( |
bool | needsCreateBySize | ) |
|
|
static |
Create a CBufferObject from the registered BufferObject types. In the future this may include some criteria for selecting a specific CBufferObject derived type. Currently it returns the CBufferObject implementation that was registered last.
- Returns
- std::unique_ptr<CBufferObject>
◆ RegisterBufferObject()
void CBufferObjectFactory::RegisterBufferObject |
( |
const std::function< std::unique_ptr< CBufferObject >()> & | createFunc | ) |
|
|
static |
◆ m_bufferObjects
std::list< std::function< std::unique_ptr< CBufferObject >()> > CBufferObjectFactory::m_bufferObjects |
|
staticprotected |
The documentation for this class was generated from the following files: