[ Maverik Level 1 functions ]


mav_paletteTextureSetFromMem

Summary

Set a palette texture from a texture in memory.


Syntax

int mav_paletteTextureSetFromMem(MAV_palette *p, int index, int width, int height, unsigned long *mem);


Description

This function sets the texture for entry index in the textures table of palette p. A texture of size (width x height) is obtained from memory starting at address mem. Note that the actual texture is not copied into the texture table, only referenced.


See also

mav_paletteTextureFree.


Back to the index page.