had to commit cuz i was getting bombed
This commit is contained in:
@@ -29,7 +29,7 @@ DECLARE_BUILD_STAGE(engine)
|
||||
|
||||
"miniaudio.cpp",
|
||||
|
||||
"kotgui.cpp",
|
||||
"kottui.cpp",
|
||||
};
|
||||
|
||||
if ( GET_PROJECT_VALUE(config, "steam") == "true" )
|
||||
|
||||
@@ -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
23
engine/kottui.cpp
Normal 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();
|
||||
Reference in New Issue
Block a user