OpenTTD Source 20241224-master-gee860a5c8e
|
SpriteAllocator that allocates memory via a unique_ptr array. More...
#include <spritecache.h>
Data Fields | |
std::unique_ptr< uint8_t[]> | data |
Protected Member Functions | |
void * | AllocatePtr (size_t size) override |
Allocate memory for a sprite. | |
Additional Inherited Members | |
Public Member Functions inherited from SpriteAllocator | |
template<typename T > | |
T * | Allocate (size_t size) |
Allocate memory for a sprite. | |
SpriteAllocator that allocates memory via a unique_ptr array.
Definition at line 41 of file spritecache.h.
|
overrideprotectedvirtual |
Allocate memory for a sprite.
size | Size of memory to allocate. |
Implements SpriteAllocator.
Definition at line 900 of file spritecache.cpp.
std::unique_ptr<uint8_t[]> UniquePtrSpriteAllocator::data |
Definition at line 43 of file spritecache.h.