C:/devkitPro/SVNProjects/uLibrary/Source/glWrapper.h File Reference

Wrapper for the default libnds VideoGL utility library. Implements namely a dynamic texture system, which allows you to create and remove textures / palettes into VRAM as you want. More...


Enumerations

enum  UL_BANKS {
  UL_BANK_A = 0x1, UL_BANK_B = 0x2, UL_BANK_C = 0x4, UL_BANK_D = 0x8,
  UL_BANK_E = 0x10, UL_BANK_F = 0x20, UL_BANK_G = 0x40, UL_BANK_H = 0x100,
  UL_BANK_I = 0x200
}
enum  UL_BANK_TYPE { UL_BANK_TYPE_LCD = 1, UL_BANK_TYPE_TEXTURE = 2, UL_BANK_TYPE_TEXPAL = 4 }

Functions

int ulSetTexVramParameters (UL_BANKS activeBanks, void *baseAddr, int totalSize)
int ulSetTexPalVramParameters (UL_BANKS activeBanks, void *baseAddr, int totalSize)
int ulTexImage2D (int target, int empty1, int type, int sizeX, int sizeY, int empty2, int param, uint8 *texture)
void ulTexParameter (uint8 sizeX, uint8 sizeY, uint32 *addr, uint8 mode, uint32 param)
int ulGetTexParameter ()
int ulGenTextures (int n, int *names)
void ulBindTexture (int target, int name)
void ulFreeTextures (int n, int *names)
int uluTexLoadPal (u16 *pal, u16 count, uint8 format)
void uluTexUnloadPal (u32 addr)
void ulBindTextureToGl (int target, int name)
void ulSetTexAlphaMask (int enable)
void ulChangeVramAllocation (UL_BANKS banks, UL_BANK_TYPE type)
void * ulReadTextureToMemory (int textureID, int sizeX, int sizeY, int type)
void * ulReadPaletteToMemory (int paletteID, int palCount)
int ulGetTexVramAvailMemory ()
int ulGetTexVramUsedMemory ()
int ulGetTexVramTotalMemory ()
int ulGetTexPalAvailMemory ()
int ulGetTexPalUsedMemory ()
int ulGetTexPalTotalMemory ()
int ulGetVertexAvailMemory ()
int ulGetVertexUsedMemory ()
int ulGetVertexTotalMemory ()

Variables

u8 ul_optimizeTextureSize
u8 ul_initTexturesToZero


Detailed Description

Wrapper for the default libnds VideoGL utility library. Implements namely a dynamic texture system, which allows you to create and remove textures / palettes into VRAM as you want.


Generated on Sat Jul 14 23:39:33 2007 by  doxygen 1.5.2