summaryrefslogtreecommitdiff
path: root/include/lua_core.h
diff options
context:
space:
mode:
authorjussi2023-06-01 20:35:06 +0300
committerjussi2023-06-01 20:35:06 +0300
commit8008ebf1b041e837eecf54c3904156309508a2a8 (patch)
treedb5a570dcfb6dd2f9547d00763223eb7855050cc /include/lua_core.h
parent4e09bc7d617dc2b784d39aa54baeaae905bfa09b (diff)
downloadreilua-enhanced-8008ebf1b041e837eecf54c3904156309508a2a8.tar.gz
reilua-enhanced-8008ebf1b041e837eecf54c3904156309508a2a8.tar.bz2
reilua-enhanced-8008ebf1b041e837eecf54c3904156309508a2a8.zip
New rlgl functions and texture can be given as table.
Diffstat (limited to 'include/lua_core.h')
-rw-r--r--include/lua_core.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/include/lua_core.h b/include/lua_core.h
index dd1414d..7abef67 100644
--- a/include/lua_core.h
+++ b/include/lua_core.h
@@ -7,38 +7,33 @@ void luaCallProcess();
void luaCallDraw();
void luaCallExit();
void luaRegister();
-/* Lua Util functions */
+/* Type validators. */
+bool isValidTexture( lua_State *L, int index );
+bool isValidRenderTexture( lua_State *L, int index );
+/* Lua Util functions. */
Color uluaGetColor( lua_State *L );
-/* Only works with positive index. */
Color uluaGetColorIndex( lua_State *L, int index );
Vector2 uluaGetVector2( lua_State *L );
-/* Only works with positive index. */
Vector2 uluaGetVector2Index( lua_State *L, int index );
Vector3 uluaGetVector3( lua_State *L );
-/* Only works with positive index. */
Vector3 uluaGetVector3Index( lua_State *L, int index );
Vector4 uluaGetVector4( lua_State *L );
-/* Only works with positive index. */
Vector4 uluaGetVector4Index( lua_State *L, int index );
Rectangle uluaGetRectangle( lua_State *L );
-/* Only works with positive index. */
Rectangle uluaGetRectangleIndex( lua_State *L, int index );
Quaternion uluaGetQuaternion( lua_State *L );
-/* Only works with positive index. */
Quaternion uluaGetQuaternionIndex( lua_State *L, int index );
Matrix uluaGetMatrix( lua_State *L );
-/* Only works with positive index. */
Matrix uluaGetMatrixIndex( lua_State *L, int index );
BoundingBox uluaGetBoundingBox( lua_State *L );
-/* Only works with positive index. */
BoundingBox uluaGetBoundingBoxIndex( lua_State *L, int index );
Ray uluaGetRay( lua_State *L );
-/* Only works with positive index. */
Ray uluaGetRayIndex( lua_State *L, int index );
NPatchInfo uluaGetNPatchInfo( lua_State *L );
-/* Only works with positive index. */
NPatchInfo uluaGetNPatchInfoIndex( lua_State *L, int index );
-
+Texture uluaGetTexture( lua_State *L, int index );
+RenderTexture uluaGetRenderTexture( lua_State *L, int index );
+/* Push types. */
void uluaPushColor( lua_State *L, Color color );
void uluaPushVector2( lua_State *L, Vector2 vector );
void uluaPushVector3( lua_State *L, Vector3 vector );