nngxDisplaybufferStorage Function
NNGX_APICALL void NNGX_APIENTRY nngxDisplaybufferStorage(
GLenum format,
GLsizei width,
GLsizei height,
GLenum area
);
| Name | Description | |
|---|---|---|
| in | format | Display buffer format. |
| in | width | Display buffer width (parallel to the scan lines). |
| in | height | Display buffer height (perpendicular to the scan lines). |
| in | area | Display buffer region. |
Allocates a region for the display buffer bound to the active display target.
The allocated region stores image data to display.
Set format to the following values for the display buffer format.
GL_RGB8_OES | RGB8 (24 bits) |
|---|---|
GL_RGBA4 | RGBA4 (16 bits) |
GL_RGB5_A1 | RGBA5551 (16 bits) |
GL_RGB565 | RGB565 (16 bits) |
Set width and height to the width and height of the display buffer. Both width and height must be greater than 0. You must also set width and height to a multiple of the block size for the color buffer to transfer to the display buffer. This must be a multiple of 8 in 8-block mode and a multiple of 32 in 32-block mode.
Set area to the following values to configure where the region is placed.
NN_GX_MEM_FCRAM | Allocates the region in main memory. |
|---|---|
NN_GX_MEM_VRAMA | Allocates the region in the A channel in VRAM. |
NN_GX_MEM_VRAMB | Allocates the region in the B channel in VRAM. |
Note: When you allocate the display buffer in VRAM, do not place it within the last 1.5 MB of the region for either the A channel or B channel.
In Development and Debug builds, if the allocated display buffer overlaps with these regions at all and nngxSwapBuffers is called, an assert occurs.
The following errors occur in this function.
GL_ERROR_8021_DMP | 0 was bound to the display target. |
|---|---|
GL_ERROR_8022_DMP | The width or height argument was set to an invalid value. |
GL_ERROR_8023_DMP | The format argument was set to an invalid value. |
GL_ERROR_8024_DMP | The area argument was set to an invalid value. |
GL_ERROR_8025_DMP | Failed to allocate the display buffer. |
GL_RGB8_OES format; revised terminology.CONFIDENTIAL