added ui rendering
This commit is contained in:
@@ -19,6 +19,8 @@ public:
|
||||
ITexture *pTexture;
|
||||
uint32_t glyphWidth;
|
||||
uint32_t glyphHeight;
|
||||
uint32_t nGlyphsPerRow;
|
||||
uint32_t nGlyphsPerColumn;
|
||||
char cCharacterSet[256];
|
||||
};
|
||||
|
||||
|
||||
@@ -20,7 +20,8 @@ public:
|
||||
virtual void Event( FGUI_Event_t event ) override;
|
||||
virtual void Draw() override;
|
||||
|
||||
uint32_t m_fGlyphSize[2];
|
||||
private:
|
||||
CFont *m_pFont;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
16
public/fgui/rect.h
Normal file
16
public/fgui/rect.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef FGUI_RECT_H
|
||||
#define FGUI_RECT_H
|
||||
#include "widget.h"
|
||||
|
||||
class CFGUI_Rect: public CFGUI_Widget
|
||||
{
|
||||
public:
|
||||
void SetBoxColor( float r, float g, float b, float a );
|
||||
|
||||
virtual void Event( FGUI_Event_t event ) override;
|
||||
virtual void Draw() override;
|
||||
|
||||
float m_fBoxColor[4];
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user