nngxGetInitializationCommand Function

Syntax

NNGX_APICALL GLsizei NNGX_APIENTRY nngxGetInitializationCommand(
     GLsizei datasize,
     GLvoid * data
);

Parameters

Name Description
in datasize Byte size of the buffer indicated by data.
in data Pointer to the buffer storing the command buffer.

Return Values

Returns the byte size of the initialization commands.

Description

Gets the register setting command for initializations that are executed with the nngxInitialize function.

This function was added as a countermeasure for problems occurring related to rendering that occurs while returning from the HOME Menu or elsewhere when setting commands are directly created in registers without using the graphics library supported by the SDK.
Accordingly, there is normally no need to use this.

When 0 is specified for the data argument, no commands are obtained.
Even when this function is called before initialization with the nngxInitialize function, no commands are obtained (a return value of 0 is returned).

First, specify 0 in data, and call this function, get the size needed for command allocation as a return value, prepare a buffer of that size, and then call this function again.

This function generates the following errors.

GL_ERROR_80B4_DMP When datasize is smaller than the obtained command size.

See Also

nngxInitialize

Revision History

2012/05/25
Initial version.

CONFIDENTIAL