From be39fd96344ee1f4f85ac5c63b4e5f9daf6e5171 Mon Sep 17 00:00:00 2001 From: jussi Date: Tue, 31 Oct 2023 15:24:11 +0200 Subject: GlyphInfo type. Some new text and core functions. --- include/core.h | 3 +++ include/lua_core.h | 1 + include/text.h | 8 +++++++- 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/core.h b/include/core.h index f9b26bd..0a4cd2b 100644 --- a/include/core.h +++ b/include/core.h @@ -10,6 +10,8 @@ int lcoreIsWindowFocused( lua_State *L ); int lcoreSetWindowMonitor( lua_State *L ); int lcoreSetWindowPosition( lua_State *L ); int lcoreSetWindowSize( lua_State *L ); +int lcoreSetWindowOpacity( lua_State *L ); +int lcoreGetWindowHandle( lua_State *L ); int lcoreSetWindowMinSize( lua_State *L ); int lcoreGetMonitorPosition( lua_State *L ); int lcoreGetMonitorSize( lua_State *L ); @@ -20,6 +22,7 @@ int lcoreIsWindowState( lua_State *L ); int lcoreClearWindowState( lua_State *L ); int lcoreIsWindowResized( lua_State *L ); int lcoreSetWindowIcon( lua_State *L ); +int lcoreSetWindowIcons( lua_State *L ); int lcoreSetWindowTitle( lua_State *L ); int lcoreGetMonitorCount( lua_State *L ); int lcoreGetCurrentMonitor( lua_State *L ); diff --git a/include/lua_core.h b/include/lua_core.h index 5fe539f..9090040 100644 --- a/include/lua_core.h +++ b/include/lua_core.h @@ -84,6 +84,7 @@ void uluaPushMatrix( lua_State *L, Matrix matrix ); void uluaPushRay( lua_State *L, Ray ray ); void uluaPushRayCollision( lua_State *L, RayCollision rayCol ); void uluaPushBoundingBox( lua_State *L, BoundingBox box ); +void uluaPushGlyphInfo( lua_State *L, GlyphInfo glyphInfo, Image *image ); void uluaPushBuffer( lua_State *L, Buffer buffer ); void uluaPushImage( lua_State *L, Image image ); void uluaPushTexture( lua_State *L, Texture texture ); diff --git a/include/text.h b/include/text.h index 1cfe4e8..ddf782e 100644 --- a/include/text.h +++ b/include/text.h @@ -10,9 +10,15 @@ int ltextUnloadFont( lua_State *L ); /* Drawing. */ int ltextDrawFPS( lua_State *L ); int ltextDrawText( lua_State *L ); +int ltextDrawTextEx( lua_State *L ); int ltextDrawTextPro( lua_State *L ); -/* Misc. */ +int ltextDrawTextCodepoint( lua_State *L ); +int ltextDrawTextCodepoints( lua_State *L ); +/* Font info functions. */ int ltextMeasureText( lua_State *L ); +int ltextGetGlyphIndex( lua_State *L ); +int ltextGetGlyphInfo( lua_State *L ); +int ltextGetGlyphAtlasRec( lua_State *L ); int ltextGetFontBaseSize( lua_State *L ); int ltextGetFontGlyphCount( lua_State *L ); int ltextGetFontGlyphPadding( lua_State *L ); -- cgit v1.2.3