added ui rendering
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "rendering.h"
|
||||
#include "input.h"
|
||||
#include "fgui/widget.h"
|
||||
#include "fgui/rect.h"
|
||||
#include "fgui/label.h"
|
||||
#include "mesh.h"
|
||||
|
||||
@@ -23,14 +24,18 @@ public:
|
||||
void C_MOBAPlayer::Precache()
|
||||
{
|
||||
}
|
||||
CFGUI_Rect *pRect = new CFGUI_Rect();
|
||||
CFGUI_Label *pText = new CFGUI_Label();
|
||||
void C_MOBAPlayer::Spawn()
|
||||
{
|
||||
pText->SetFont("fonts/IBMPlexMono-Regular");
|
||||
pText->SetPosition(100, 100);
|
||||
pText->SetLabelSize(15);
|
||||
pText->SetLabel("Hello, world!");
|
||||
pRect->SetPosition(0, 0);
|
||||
pRect->SetSize(200, 200);
|
||||
pRect->SetBoxColor(0, 1, 0, 1);
|
||||
|
||||
pText->SetFont("fonts/IBMPlexMono-Regular");
|
||||
pText->SetPosition(0, 0);
|
||||
pText->SetLabelSize(15);
|
||||
pText->SetLabel("Hello world!");
|
||||
|
||||
float cubeVertices[] = {
|
||||
// Front face
|
||||
|
||||
Reference in New Issue
Block a user