nn::gr::CTR::Viewport

nn::gr::CTR::Viewport Class

Syntax

class Viewport

Description

Class for generating viewport-related commands. First assign values to each x, y, width, and height member, then generate a command using MakeCommand().

Member Variables

x s32 Lower left x-coordinate of the viewport. Type is f32.
y s32 Lower left y-coordinate of the viewport. Type is f32.
width u32 Width of the viewport. Type is u32.
height u32 Height of the viewport. Type is u32.

Member Functions

Viewport Constructor for initializing to default values (0, 0, 240, 320).
MakeCommand Generates a rendering command based on information already set.
Set Convenient function for specifying parameters all at once. You may assign values directly to member variables without using this function.

Revision History

2010/09/15
Initial version.

CONFIDENTIAL