NNS_GfdFreeTexVram

C Specification

#include <nnsys/gfd.h>
int NNS_GfdFreeTexVram(NNSGfdTexKey memKey);

Arguments

memKey Key data showing the allocated texture-use memory

Return Values

0 if the texture-use memory has been freed successfully.

Description

Frees the texture-use memory specified by memKey. The NITRO-System library uses this function to free texture-use memory allocated from VRAM.

The NNS_GfdFreeTexVram function is defined as shown below. The only process this function conducts internally is to call the function set in the global function pointer NNS_GfdDefaultFuncFreeTexVram.

static inline int
NNS_GfdFreeTexVram(NNSGfdTexKey key)
{
return (*NNS_GfdDefaultFuncFreeTexVram)(memKey);
}

NNS_GfdFreeTexVram functions by registering the appropriate function for freeing texture-use memory in this function pointer. With this setup, the user can control the freeing of texture-use memory from the library. In the initial state, the function that is set in NNS_GfdDefaultFuncFreeTexVram does nothing and returns an error.

See Also

NNS_GfdAllocTexVram

Revision History

07/16/2004 Initial version.