nn::gr::CTR::FrameBuffer

nn::gr::CTR::FrameBuffer Class

Syntax

class FrameBuffer

Description

Class for configuring framebuffer settings.

Classes

nn::gr::CTR::FrameBuffer::ColorBuffer Class for configuring color buffer settings.
nn::gr::CTR::FrameBuffer::DepthStencilBuffer Class for configuring depth and stencil buffer settings.

Enumerated Types

BlockSize Enumerated type definition for setting block sizes.

Member Constants

S COLOR_BUFFER_BIT const u32 Bit specifying the color buffer.
S DEPTH_BUFFER_BIT const u32 Bit specifying the depth buffer.
S STENCIL_BUFFER_BIT const u32 Bit specifying the stencil buffer.
S DEPTH_STENCIL_BUFFER_BIT const u32 Bit specifying the depth and stencil buffers.

Member Variables

colorBuffer ColorBuffer The color buffer setting. Type is nn::gr::CTR::FrameBuffer::ColorBuffer.
depthStencilBuffer DepthStencilBuffer The depth and stencil buffer setting. Type is nn::gr::CTR::FrameBuffer::DepthStencilBuffer.
width s32 Width of the framebuffer. Type is f32.
height s32 Height of the framebuffer. Type is f32.

Member Functions

FrameBuffer Initializes framebuffer settings to the initial values.
MakeCommand Generates a command for setting the framebuffer based on information already set.
MakeClearRequest Generates a request to clear the color buffer and the depth/stencil buffer. When the isSplitDrawCmdlist argument is false, you must call the nngxSplitDrawCmdlist function before calling the request.
S MakeClearCacheCommand Clears the framebuffer cache. Must be called after rendering and before changing registers 0x100-0x130.

Revision History

2010/10/25
Initial version.

CONFIDENTIAL