Mercurial > LightClone
view LightClone/Source/GuiLabel.h @ 50:7ff46a00bcd3
Working on GuiRenderContext
author | koryspansel |
---|---|
date | Fri, 23 Sep 2011 17:58:17 -0700 |
parents | 3a63df04f3c0 |
children | efd2b1ca5b77 |
line wrap: on
line source
/* * GuiLabel */ #ifndef __GUILABEL_H__ #define __GUILABEL_H__ #include "Core.h" #include "GuiElement.h" #include "FixedString.h" /* * GuiLabelFlag */ enum { GuiLabelFlag_CenterX = (1 << 0), GuiLabelFlag_CenterY = (1 << 1), }; /* * GuiLabel */ class GuiLabel : public GuiElement { /* * pResourceManager */ ResourceManager* pResourceManager; /* * pFont */ ID3DXFont* pFont; /* * kLabel */ FixedString<> kLabel; /* * nLabelFlags */ uint32 nLabelFlags; public: /* * GuiLabel */ GuiLabel(); /* * Initialize */ virtual ErrorCode Initialize(ResourceManager* pResourceManager); /* * Terminate */ virtual void Terminate(); /* * Update */ virtual void Update(float fElapsed); /* * Render */ //virtual void Render(RenderContext& kContext, Camera& kCamera); virtual void Render(GuiRenderContext& kContext); /* * SetFont */ ErrorCode SetFont(const char* pName, uint32 nSize, uint32 nHeight = FW_NORMAL); /* * SetText */ ErrorCode SetText(const char* pText); /* * SetLabelFlag */ ErrorCode SetLabelFlag(uint32 nFlag); /* * ClearLabelFlag */ ErrorCode ClearLabelFlag(uint32 nFlag); }; #endif //__GUILABEL_H__