#ifndef FGUI_H #define FGUI_H #include "rendering.h" #include "tier0/platform.h" #include "tier1/utlstring.h" class CFGUI_Widget; struct FGUI_Event_t { }; class CFont { public: CUtlString szName; ITexture *pTexture; uint32_t glyphWidth; uint32_t glyphHeight; uint32_t nGlyphsPerRow; uint32_t nGlyphsPerColumn; char cCharacterSet[256]; }; interface IFGUI { public: static void Init( void ); static void Frame( void ); static void AppendWidget( CFGUI_Widget *pWidget ); static void DestroyWidget( CFGUI_Widget *pWidget ); static void SetRectColor( float r, float g, float b, float a ); static void DrawRect( int32_t iPosX, int32_t iPosY, uint32_t uSizeX, uint32_t uSizeY ); static CFont *LoadFont( CUtlString szFontPath ); static void SetTextFont( CFont *pFont ); static void SetTextPos( float x, float y ); static void SetTextColor( float r, float g, float b, float a ); static void DrawText( CUtlString psz ); }; #endif