Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Structs.h
Go to the documentation of this file.
1 // File name: structs.h
2 // Des: in file tamame struct hayee ke dar namespace core hastand ra dar khod negah
3 // midarad.
4 // Date: 27/5/1385
5 // Programmer: Ali Akbar Mohamadi(Kochol)
6 
7 #ifndef CORE_STRUCTS_H
8 #define CORE_STRUCTS_H
9 
10 #include "../kgedef.h"
11 
12 namespace kge
13 {
14 namespace core
15 {
17 
18 template <typename T>
19 struct Rect
20 {
21  Rect() {}
22  Rect(T iX, T iY, T iW, T iH)
23  {
24  X = iX;
25  Y = iY;
26  Width = iW;
27  Height = iH;
28  }
29 
30  T X;
31  T Y;
32  T Width;
33  T Height;
35 }; // Rect
36 
37 typedef Rect<int> RectI;
39 
40 } // core
41 
42 } // kge
43 
44 #endif // CORE_STRUCTS_H