My Project
ParaScriptingGraphics.h
1 #pragma once
2 
3 namespace ParaEngine
4 {
5  struct GUIFontElement;
6  struct GUITextureElement;
7 }
8 
9 namespace ParaScripting
10 {
11  using namespace ParaEngine;
12 
22  class PE_CORE_DECL ParaUITexture {
23  protected:
24  GUITextureElement* m_pObj;
25  public:
29  bool IsValid(){ return m_pObj != NULL; }
30  ParaUITexture(GUITextureElement* obj){ m_pObj = obj; };
31  DWORD GetTransparency()const;
32  void SetTransparency(DWORD transparency);
33  std::string GetColor()const;
34  void SetColor(const char *strColor);
35  std::string GetTexture()const;
36  void SetTexture(const char *texturename);
37  std::string GetTextureRect()const;
38  void SetTextureRect(const char *strrect);
39  };
40 
50  class PE_CORE_DECL ParaUIFont {
51  protected:
52  GUIFontElement* m_pObj;
53  public:
54  ParaUIFont(GUIFontElement* obj){ m_pObj = obj; };
55 
59  bool IsValid(){ return m_pObj != NULL; }
60 
61 
62  DWORD GetTransparency()const;
63  void SetTransparency(DWORD transparency);
64  std::string GetColor()const;
65  void SetColor(const char *strColor);
66  DWORD GetFormat()const;
67 
96  void SetFormat(DWORD format);
97  std::string GetFont()const;
98  void SetFont(const char *fontname);
99  };
100 }
bool IsValid()
check if the object is valid
Definition: ParaScriptingGraphics.h:29
different physics engine has different winding order.
Definition: EventBinding.h:32
bool IsValid()
check if the object is valid
Definition: ParaScriptingGraphics.h:59
a GUI texture object
Definition: ParaScriptingGraphics.h:22
a texture from a rectangular region of bitmap, and one additional texture color
Definition: GUIResource.h:12
a GUI font object
Definition: ParaScriptingGraphics.h:50
a font name, format and font color
Definition: GUIResource.h:36
for luabind, The main drawback of this approach is that the compilation time will increase for the fi...
Definition: luaSQLite.cpp:1971