DSC Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
DSC::ObjAllocator Class Reference

Public Member Functions

 ObjAllocator (Allocator *allocator, PaletteLoader *palette_loader, int bytes_per_entry=32)
 creates a new ObjAllocator instance More...
 
bool allocate (ObjFrame *frame)
 allocates new block for the specified frame More...
 
void deallocate (ObjFrame *frame)
 deallocates new block for the specified frame More...
 

Constructor & Destructor Documentation

◆ ObjAllocator()

DSC::ObjAllocator::ObjAllocator ( Allocator allocator,
PaletteLoader palette_loader,
int  bytes_per_entry = 32 
)

creates a new ObjAllocator instance

Parameters
allocatorVRAM allocator to be used
bytes_per_entryminimum bytes allocation block count (32, 64, 128, 256)

Member Function Documentation

◆ allocate()

bool DSC::ObjAllocator::allocate ( ObjFrame frame)

allocates new block for the specified frame

Parameters
frameobject frame data

◆ deallocate()

void DSC::ObjAllocator::deallocate ( ObjFrame frame)

deallocates new block for the specified frame

Parameters
frameobject frame data

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