added ui rendering

This commit is contained in:
2025-07-14 21:56:10 +03:00
parent 7c2b65d079
commit d6100a8752
17 changed files with 254 additions and 33 deletions

View File

@@ -19,6 +19,8 @@ public:
ITexture *pTexture;
uint32_t glyphWidth;
uint32_t glyphHeight;
uint32_t nGlyphsPerRow;
uint32_t nGlyphsPerColumn;
char cCharacterSet[256];
};

View File

@@ -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
View 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