OpenTTD Source: SimpleSpriteAllocator Class Reference

OpenTTD Source 15.0-beta1

Protected Member Functions
SimpleSpriteAllocator Class Reference

SpriteAllocate that uses malloc to allocate memory. More...

`#include <spritecache.h>`

Inheritance diagram for SimpleSpriteAllocator:

## Protected Member Functions
void * | AllocatePtr (size_t size) override
| Sprite allocator simply using malloc.

## Additional Inherited Members
Public Member Functions inherited from SpriteAllocator
template<typename T >
T * | Allocate (size_t size)
| Allocate memory for a sprite.

## Detailed Description

SpriteAllocate that uses malloc to allocate memory.

Definition at line 35 of file spritecache.h.

## Member Function Documentation

## ◆ AllocatePtr()

void * SimpleSpriteAllocator::AllocatePtr | ( | size_t | size | ) |
| overrideprotectedvirtual

Sprite allocator simply using malloc.

Implements SpriteAllocator.

Definition at line 895 of file spritecache.cpp.

The documentation for this class was generated from the following files:

- src/spritecache.h
- src/spritecache.cpp