|
OpenTTD Source 15.0-beta1
|
SpriteAllocator that allocates memory from the sprite cache. More...
#include <spritecache_internal.h>
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 from the sprite cache.
Definition at line 36 of file spritecache_internal.h.
|
overrideprotectedvirtual |
Allocate memory for a sprite.
| size | Size of memory to allocate. |
Implements SpriteAllocator.
Definition at line 855 of file spritecache.cpp.
References Align(), DeleteEntryFromSpriteCache(), and S_FREE_MASK.