|
| | OpenGLSpriteAllocator (OpenGLSpriteLRUCache &lru, SpriteID sprite) |
|
virtual | ~SpriteAllocator ()=default |
| | Ensure the destructor of the sub classes are called as well.
|
| template<typename T> |
| T * | Allocate (size_t size) |
| | Allocate memory for a sprite.
|
|
| void * | AllocatePtr (size_t) override |
| | Allocate memory for a sprite.
|
Definition at line 1116 of file opengl.cpp.
◆ OpenGLSpriteAllocator()
| OpenGLSpriteAllocator::OpenGLSpriteAllocator |
( |
OpenGLSpriteLRUCache & | lru, |
|
|
SpriteID | sprite ) |
|
inline |
◆ AllocatePtr()
| void * OpenGLSpriteAllocator::AllocatePtr |
( |
size_t | size | ) |
|
|
inlineoverrideprotectedvirtual |
Allocate memory for a sprite.
- Parameters
-
| size | Size of memory to allocate. |
- Returns
- Pointer to allocated memory.
Implements SpriteAllocator.
Definition at line 1123 of file opengl.cpp.
◆ lru
| OpenGLSpriteLRUCache& OpenGLSpriteAllocator::lru |
◆ sprite
The documentation for this class was generated from the following file: