had to commit cuz i was getting bombed

This commit is contained in:
2026-05-24 02:49:36 +03:00
parent c55a34f33c
commit a9766d6dd6
22 changed files with 389 additions and 116 deletions

View File

@@ -29,7 +29,7 @@ DECLARE_BUILD_STAGE(engine)
"miniaudio.cpp",
"kotgui.cpp",
"kottui.cpp",
};
if ( GET_PROJECT_VALUE(config, "steam") == "true" )

View File

@@ -1,31 +0,0 @@
#include "kotgui/kotgui.h"
class CKotUIManager: public IKotUIManager
{
public:
virtual void BeginDrawing() = 0;
virtual void EndDrawing() = 0;
virtual IRenderContext *GetContext() = 0;
virtual IShader *GetShader( EKotUIShader eShader ) = 0;
virtual IRenderCommandList *GetCommandList() = 0;
};
namespace kotgui
{
void DrawText(
Alignment_t position,
Alignment_t offset,
float fRotation,
Color4 color,
uint32_t *pText,
uint32_t uSize,
IRenderFont *pFont,
float fTextSize
)
{
}
}

23
engine/kottui.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include "kottui/kottui.h"
class CKotUIBuffer: public IKotUIBuffer
{
public:
virtual void SetColor( char c ) = 0;
virtual void SetPosition( int iY, int iX ) = 0;
virtual void Printf(const char *szFormat, ...) = 0;
virtual void PutChar( char c ) = 0;
virtual void Clear( char c ) = 0;
};
class CKotUIManager: public IKotUIManager
{
public:
virtual void SetTextSize( int iY, int iX ) = 0;
virtual void SetTextFont( IRenderFont *pFont ) = 0;
virtual void CreateBuffer( int iWidth, int iHeight, int iY, int iX ) = 0;
virtual void Draw( IRenderContext *pRenderContext );
};
IKotUIManager *KotUIManager();