nn::gr::CTR::Scissor Classclass Scissor
Class for generating scissor-related commands. Unlike glScissor, the color buffer size of the target drawing must be given.
| isEnable | bool | Sets whether to enable scissoring. Type is bool. |
|
|---|---|---|---|
| x | s32 | The lower left x value in the scissor area. Type is f32. |
|
| y | s32 | The lower left y value in the scissor area. Type is f32. |
|
| width | u32 | The scissor area width. Type is u32. |
|
| height | u32 | The scissor area height. Type is u32. |
|
| bufferWidth | s32 | The scissor area color buffer width. Type is f32. |
|
| bufferHeight | s32 | The scissor area color buffer width. Type is f32. |
Scissor
|
Constructor. Sets initial values (scissor enabled, scissor area (0,0) to (240,320), buffer size (256,320)). | |
|---|---|---|
MakeCommand
|
Generates a rendering command based on information already set. | |
Set
|
Convenient function for specifying the scissor area all at once. | |
SetBufferSize
|
Convenient function for specifying the buffer size all at once. | |
| S |
MakeDisableCommand
|
Generates commands to disable scissor tests. |
CONFIDENTIAL