Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Image.h
Go to the documentation of this file.
1 // File name: Image.h
2 // Des: This file is the image control.
3 // Date: 7/1/1387
4 // Programmer: Ali Akbar Mohamadi(Kochol)
5 
6 #ifndef KGE_IMAGE_H
7 #define KGE_IMAGE_H
8 
9 #include "Control.h"
10 
11 namespace kge
12 {
13 namespace gui
14 {
16  class KGE_API Image: public Control
17  {
18 
19  public:
20 
22  Image(u16* pIndices,
23  core::RectI rect,
24  gfx::Renderer* pRenderer);
25 
27  ~Image();
28 
30  virtual void Render();
31 
32  // Set custom UV
33  virtual void SetUV(float u1, float v1, float u2, float v2);
34 
36 
37  protected:
38 
39  // Updates the control properties.
40  virtual void Update();
41 
42  };// Image
43 
44 } // gui
45 
46 } // kge
47 
48 #endif // KGE_IMAGE_H