From 26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 10 Mar 2022 17:53:43 +0200 Subject: Measure text. --- include/core.h | 1 + include/text.h | 3 +++ 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/core.h b/include/core.h index 7a0655a..cead79f 100644 --- a/include/core.h +++ b/include/core.h @@ -16,6 +16,7 @@ int lcoreClearWindowState( lua_State *L ); int lcoreIsWindowResized( lua_State *L ); int lcoreSetWindowIcon( lua_State *L ); int lcoreSetWindowTitle( lua_State *L ); +int lcoreCloseWindow( lua_State *L ); /* Timing. */ int lcoreSetTargetFPS( lua_State *L ); int lcoreGetFrameTime( lua_State *L ); diff --git a/include/text.h b/include/text.h index c1e7b3e..a07b320 100644 --- a/include/text.h +++ b/include/text.h @@ -4,8 +4,11 @@ bool validFont( size_t id ); /* Loading. */ int ltextLoadFont( lua_State *L ); +int ltextLoadFontFromImage( lua_State *L ); int ltextUnloadFont( lua_State *L ); /* Drawing. */ int ltextDrawFPS( lua_State *L ); int ltextDrawText( lua_State *L ); int ltextDrawTextPro( lua_State *L ); +/* Misc. */ +int ltextMeasureText( lua_State *L ); -- cgit v1.2.3