nn::gr::CTR::Viewport Classclass Viewport
Class for generating viewport-related commands. First assign values to each x, y, width, and height member, then generate a command using MakeCommand().
| 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. |
| 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. |
CONFIDENTIAL