sgdk: vram.h Source File

sgdk

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

vram.h
Go to the documentation of this file.

    00001
    00144 #ifndef _VRAM_H_
    00145 #define _VRAM_H_
    00146
    00147
    00163 typedef struct
    00164 {
    00165     u16 startIndex;
    00166     u16 endIndex;
    00167     u16 *free;
    00168     u16 *vram;
    00169 } VRAMRegion;
    00170
    00171
    00188 void VRAM_createRegion(VRAMRegion *region, u16 startIndex, u16 size);
    00200 void VRAM_releaseRegion(VRAMRegion *region);
    00208 void VRAM_clearRegion(VRAMRegion *region);
    00209
    00219 u16 VRAM_getFree(VRAMRegion *region);
    00229 u16 VRAM_getAllocated(VRAMRegion *region);
    00239 u16 VRAM_getLargestFreeBlock(VRAMRegion *region);
    00240
    00255 s16 VRAM_alloc(VRAMRegion *region, u16 size);
    00267 void VRAM_free(VRAMRegion *region, u16 index);
    00268
    00269
    00270 #endif // _VRAM_H_

All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines