#include <nnsys/gfd.h>
NNSGfdPlttKey NNS_GfdAllocLnkPlttVram( u32 szByte, BOOL b4Pltt, u32 opt );
| szByte | The size of the region to allocate (8 to 524280 bytes) |
| b4Pltt | Determines whether it is a 4-color palette. TRUE if it is a 4-color palette. |
| opt | Option. This is not used. |
Returns a palette key that shows the allocated VRAM region. If the allocation fails, the function returns NNS_GFD_ALLOC_ERROR_PLTTKEY, a key that shows an error.
Allocates the VRAM region used as the texture palette and obtains a palette key. When b4Pltt is TRUE, the function allocates memory for a 4-color palette. Note: The 4-color palette has specific limitations:
If an allocation request is made for a size below the minimum that can be expressed for the key, the request size is rounded up to the minimum. If an allocation request is made for a size above the maximum that can be expressed for the key, the allocation process will not be performed and an error key will be returned.
01/31/2005 Added a cautionary statement regarding the size range.
10/12/2004 Initial version.
CONFIDENTIAL