diff options
| author | jussi | 2023-11-03 23:12:55 +0200 |
|---|---|---|
| committer | jussi | 2023-11-03 23:12:55 +0200 |
| commit | d74a505d406faf276a265beaf8925d6e8ff9cec0 (patch) | |
| tree | 72de6e187e0e745f21a9190f5d02895fcecaf83c /include | |
| parent | e61823b8bb69e258370503df7969e4e3c2089e2d (diff) | |
| download | reilua-enhanced-d74a505d406faf276a265beaf8925d6e8ff9cec0.tar.gz reilua-enhanced-d74a505d406faf276a265beaf8925d6e8ff9cec0.tar.bz2 reilua-enhanced-d74a505d406faf276a265beaf8925d6e8ff9cec0.zip | |
Compress/decompress and Encode/Decode DataBase64.
Diffstat (limited to 'include')
| -rw-r--r-- | include/core.h | 16 | ||||
| -rw-r--r-- | include/lua_core.h | 7 | ||||
| -rw-r--r-- | include/models.h | 1 |
3 files changed, 20 insertions, 4 deletions
diff --git a/include/core.h b/include/core.h index 0a4cd2b..ffed469 100644 --- a/include/core.h +++ b/include/core.h @@ -1,5 +1,8 @@ #pragma once +#include "lua_core.h" + +void unloadBuffer( Buffer *buffer ); /* Window. */ int lcoreIsWindowReady( lua_State *L ); int lcoreIsWindowFullscreen( lua_State *L ); @@ -46,8 +49,6 @@ int lcoreSetTraceLogLevel( lua_State *L ); int lcoreSetLogLevelInvalid( lua_State *L ); int lcoreGetLogLevelInvalid( lua_State *L ); int lcoreOpenURL( lua_State *L ); -int lcoreLoadBuffer( lua_State *L ); -int lcoreUnloadBuffer( lua_State *L ); int lcoreIsGCUnloadEnabled( lua_State *L ); /* Cursor. */ int lcoreShowCursor( lua_State *L ); @@ -98,6 +99,11 @@ int lcoreIsPathFile( lua_State *L ); int lcoreIsFileDropped( lua_State *L ); int lcoreLoadDroppedFiles( lua_State *L ); int lcoreGetFileModTime( lua_State *L ); +/* Compression/Encoding functionality. */ +int lcoreCompressData( lua_State *L ); +int lcoreDecompressData( lua_State *L ); +int lcoreEncodeDataBase64( lua_State *L ); +int lcoreDecodeDataBase64( lua_State *L ); /* Camera2D. */ int lcoreCreateCamera2D( lua_State *L ); int lcoreBeginMode2D( lua_State *L ); @@ -189,3 +195,9 @@ int lcoreGetWorldToScreen( lua_State *L ); int lcoreGetWorldToScreenEx( lua_State *L ); int lcoreGetWorldToScreen2D( lua_State *L ); int lcoreGetScreenToWorld2D( lua_State *L ); +/* Buffer. */ +int lcoreLoadBuffer( lua_State *L ); +int lcoreUnloadBuffer( lua_State *L ); +int lcoreGetBufferData( lua_State *L ); +int lcoreGetBufferType( lua_State *L ); +int lcoreGetBufferSize( lua_State *L ); diff --git a/include/lua_core.h b/include/lua_core.h index 44b9ed1..a289cb0 100644 --- a/include/lua_core.h +++ b/include/lua_core.h @@ -18,14 +18,17 @@ enum BufferType { BUFFER_UNSIGNED_CHAR, BUFFER_UNSIGNED_SHORT, BUFFER_UNSIGNED_INT, + BUFFER_CHAR, + BUFFER_SHORT, + BUFFER_INT, BUFFER_FLOAT, + BUFFER_DOUBLE }; typedef struct { + int type; size_t size; void *data; - int x; - int y; } Buffer; bool luaInit( int argn, const char **argc ); diff --git a/include/models.h b/include/models.h index f97e4a4..e6e91a7 100644 --- a/include/models.h +++ b/include/models.h @@ -1,6 +1,7 @@ #pragma once /* Internals. */ +void unloadMaterial( Material *material ); /* Deleted from raylib. Need for freeing models. */ void UnloadModelKeepMeshes( Model model ); void DrawBillboardProNoRatio( Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint ); |
