summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjussi2023-04-07 15:09:27 +0300
committerjussi2023-04-07 15:09:27 +0300
commit3cc1af265f982d869d095267f837f60733c89778 (patch)
tree37a0da63f8f3d43bce7ec8c321e69d2f9d442c7f /include
parent9e7f538a38eb66430f919eec1d5cfa3a7a1efe8c (diff)
downloadreilua-enhanced-3cc1af265f982d869d095267f837f60733c89778.tar.gz
reilua-enhanced-3cc1af265f982d869d095267f837f60733c89778.tar.bz2
reilua-enhanced-3cc1af265f982d869d095267f837f60733c89778.zip
GenImagePerlinNoise and GenImageText. Get indexed functions for types.
Diffstat (limited to 'include')
-rw-r--r--include/lua_core.h20
-rw-r--r--include/textures.h2
2 files changed, 22 insertions, 0 deletions
diff --git a/include/lua_core.h b/include/lua_core.h
index 228c4c0..a907cae 100644
--- a/include/lua_core.h
+++ b/include/lua_core.h
@@ -9,15 +9,35 @@ void luaCallExit();
void luaRegister();
/* 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 );
void uluaPushColor( lua_State *L, Color color );
void uluaPushVector2( lua_State *L, Vector2 vector );
diff --git a/include/textures.h b/include/textures.h
index 1f7932e..80e5a37 100644
--- a/include/textures.h
+++ b/include/textures.h
@@ -22,7 +22,9 @@ int ltexturesGenImageGradientH( lua_State *L );
int ltexturesGenImageGradientRadial( lua_State *L );
int ltexturesGenImageChecked( lua_State *L );
int ltexturesGenImageWhiteNoise( lua_State *L );
+int ltexturesGenImagePerlinNoise( lua_State *L );
int ltexturesGenImageCellular( lua_State *L );
+int ltexturesGenImageText( lua_State *L );
/* Image Manipulation Functions. */
int ltexturesImageCopy( lua_State *L );
int ltexturesImageFromImage( lua_State *L );