summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjussi2023-10-28 14:15:20 +0300
committerjussi2023-10-28 14:15:20 +0300
commitaf03c7364ea0dfe2c8bb269eb8a8f9b580f39633 (patch)
tree8ef09eefe38c890112972768c6861432028d8945 /include
parent23935aefca3212c989199cd7e195c02b01ef14ae (diff)
downloadreilua-enhanced-af03c7364ea0dfe2c8bb269eb8a8f9b580f39633.tar.gz
reilua-enhanced-af03c7364ea0dfe2c8bb269eb8a8f9b580f39633.tar.bz2
reilua-enhanced-af03c7364ea0dfe2c8bb269eb8a8f9b580f39633.zip
New object type Font.
Diffstat (limited to 'include')
-rw-r--r--include/lua_core.h1
-rw-r--r--include/state.h5
-rw-r--r--include/text.h4
3 files changed, 2 insertions, 8 deletions
diff --git a/include/lua_core.h b/include/lua_core.h
index 1efaf1c..c90464e 100644
--- a/include/lua_core.h
+++ b/include/lua_core.h
@@ -74,6 +74,7 @@ void uluaPushRenderTexture( lua_State *L, RenderTexture renderTexture );
void uluaPushCamera2D( lua_State *L, Camera2D camera );
void uluaPushCamera3D( lua_State *L, Camera3D camera );
void uluaPushShader( lua_State *L, Shader shader );
+void uluaPushFont( lua_State *L, Font font );
int uluaGetTableLen( lua_State *L );
int uluaGetTableLenIndex( lua_State *L, int index );
diff --git a/include/state.h b/include/state.h
index a0b17fa..bf86d00 100644
--- a/include/state.h
+++ b/include/state.h
@@ -13,13 +13,8 @@ typedef struct {
bool run;
lua_State *luaState;
Vector2 resolution;
- size_t guiFont;
int logLevelInvalid;
/* Resources. */
- /* Fonts. */
- Font **fonts;
- size_t fontCount;
- size_t fontAlloc;
/* Sounds. */
Wave **waves;
size_t waveCount;
diff --git a/include/text.h b/include/text.h
index 943cbca..1c3ef40 100644
--- a/include/text.h
+++ b/include/text.h
@@ -1,12 +1,10 @@
#pragma once
-/* Validators. */
-bool validFont( size_t id );
/* Loading. */
+int ltextGetFontDefault( lua_State *L );
int ltextLoadFont( lua_State *L );
int ltextLoadFontEx( lua_State *L );
int ltextLoadFontFromImage( lua_State *L );
-int ltextUnloadFont( lua_State *L );
/* Drawing. */
int ltextDrawFPS( lua_State *L );
int ltextDrawText( lua_State *L );