nn::dbg::CTR::DirectPrint::ChangeDisplaybuffer Member Function

Syntax

#include <nn/dbg.h>

void ChangeDisplaybuffer(
     void * dispbuf,
     GLenum format,
     const nn::math::VEC2 & size
);

Parameters

Name Description
in dispbuf The starting address of the display buffer being written to.
in format The format of the target display buffer.
in size The size of the target display buffer. (The size with upper-left origin from user's point of view.)

Return Values

None.

Description

Specifies the display buffer to write to.

VRAM cannot be specified in dispbuf. The display buffer must be placed in the device memory.

Use nngxGetDisplaybufferParameteri to get the values that should be passed to dispbuf , format, and size. The values passed to size are specified by height and width (normally width) from the user's point of view. Note that the values obtained by nngxGetDisplaybufferParameteri are reversed for height and width.

Revision History

2012/06/22
Added that only the device memory was supported.
2012/04/20
Initial version.

CONFIDENTIAL