1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     gr_Viewport.h
4 
5   Copyright (C)2010 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law. They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 33946 $
14  *---------------------------------------------------------------------------*/
15 
16 #ifndef NN_GR_VIEWPORT_H_
17 #define NN_GR_VIEWPORT_H_
18 
19 #include <nn/gr/CTR/gr_Prefix.h>
20 #include <nn/gr/CTR/gr_Utility.h>
21 
22 namespace nn
23 {
24     namespace gr
25     {
26         namespace CTR
27         {
28 
29             /* Please see man pages for details
30 
31 
32             */
33             class Viewport
34             {
35             public:
36                 /* Please see man pages for details
37 
38                 */
Viewport(void)39                 Viewport( void ) :
40                 x( 0 ),
41                 y( 0 ),
42                 width( 240 ),
43                 height( 320 )
44                 {
45                 }
46 
47                 /* Please see man pages for details
48 
49 
50 
51 
52 
53 
54                  */
Viewport(s32 x_,s32 y_,u32 width_,u32 height_)55                 Viewport( s32 x_, s32 y_, u32 width_, u32 height_ ) :
56                 x( x_ ),
57                 y( y_ ),
58                 width( width_ ),
59                 height( height_ )
60                 {
61                 }
62 
63             public:
64                 /* Please see man pages for details
65 
66 
67 
68 
69 
70                 */
71                 bit32* MakeCommand( bit32* command ) const;
72 
73             public:
74                 /* Please see man pages for details
75 
76 
77 
78 
79 
80 
81 
82                 */
Set(s32 x_,s32 y_,u32 width_,u32 height_)83                 void Set( s32 x_, s32 y_, u32 width_, u32 height_ )
84                 {
85                     x = x_; y = y_; width = width_; height = height_;
86                 }
87 
88             public:
89                 /* Please see man pages for details
90 
91                 */
92                 s32	x;
93 
94                 /* Please see man pages for details
95 
96                 */
97                 s32	y;
98 
99                 /* Please see man pages for details
100 
101                 */
102                 u32	width;
103 
104                 /* Please see man pages for details
105 
106                 */
107                 u32	height;
108             };
109 
110         } // namespace CTR
111     } // namespace gr
112 } // namespace nn
113 
114 #endif // NN_GR_VIEWPORT_H_
115