You.i Engine
YiViewport.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_VIEWPORT_H_
3 #define _YI_VIEWPORT_H_
4 
5 #include "framework/YiPredef.h"
6 
13 {
14 public:
15  CYIViewport();
16  CYIViewport(int32_t x, int32_t y, int32_t width, int32_t height);
17  virtual ~CYIViewport();
18 
19  void Init(int32_t x, int32_t y, int32_t width, int32_t height);
20 
21  int32_t m_nX;
22  int32_t m_nY;
23  int32_t m_nWidth;
24  int32_t m_nHeight;
25 
26  bool operator==(const CYIViewport &rhs) const;
27  bool operator!=(const CYIViewport &rhs) const;
28 
29 };
30 
33 #endif // _YI_VIEWPORT_H_
bool operator!=(const CYIViewport &rhs) const
bool operator==(const CYIViewport &rhs) const
virtual ~CYIViewport()
Definition: YiViewport.h:12
int32_t m_nWidth
Definition: YiViewport.h:23
int32_t m_nHeight
Definition: YiViewport.h:24
int32_t m_nX
Definition: YiViewport.h:21
int32_t m_nY
Definition: YiViewport.h:22
void Init(int32_t x, int32_t y, int32_t width, int32_t height)