diff options
| author | jussi | 2022-02-27 19:31:28 +0200 |
|---|---|---|
| committer | jussi | 2022-02-27 19:31:28 +0200 |
| commit | c3ae0a6c28316174891f8361ee0226d699a24013 (patch) | |
| tree | 5e6ece761d9fda650ceef7e2dd2b164ce6e6ce57 /include | |
| parent | da446b40b6923a08ce1f12f01bb93522c97683fe (diff) | |
| download | reilua-enhanced-c3ae0a6c28316174891f8361ee0226d699a24013.tar.gz reilua-enhanced-c3ae0a6c28316174891f8361ee0226d699a24013.tar.bz2 reilua-enhanced-c3ae0a6c28316174891f8361ee0226d699a24013.zip | |
Color pixel functions.
Diffstat (limited to 'include')
| -rw-r--r-- | include/lua_core.h | 2 | ||||
| -rw-r--r-- | include/textures.h | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/lua_core.h b/include/lua_core.h index 66ee22a..694b94d 100644 --- a/include/lua_core.h +++ b/include/lua_core.h @@ -10,6 +10,7 @@ void luaRegister(); Color uluaGetColor( lua_State *L ); Vector2 uluaGetVector2( lua_State *L ); Vector3 uluaGetVector3( lua_State *L ); +Vector4 uluaGetVector4( lua_State *L ); Rectangle uluaGetRectangle( lua_State *L ); Quaternion uluaGetQuaternion( lua_State *L ); Matrix uluaGetMatrix( lua_State *L ); @@ -20,6 +21,7 @@ NPatchInfo uluaGetNPatchInfo( lua_State *L ); void uluaPushColor( lua_State *L, Color color ); void uluaPushVector2( lua_State *L, Vector2 vector ); void uluaPushVector3( lua_State *L, Vector3 vector ); +void uluaPushVector4( lua_State *L, Vector4 vector ); void uluaPushRectangle( lua_State *L, Rectangle rect ); void uluaPushMatrix( lua_State *L, Matrix matrix ); void uluaPushRayCollision( lua_State *L, RayCollision rayCol ); diff --git a/include/textures.h b/include/textures.h index c759904..fdca59e 100644 --- a/include/textures.h +++ b/include/textures.h @@ -43,4 +43,14 @@ int ltexturesSetTextureFilter( lua_State *L ); int ltexturesSetTextureWrap( lua_State *L ); int ltexturesGetTextureSize( lua_State *L ); /* Color/pixel */ +int ltexturesFade( lua_State *L ); +int ltexturesColorToInt( lua_State *L ); +int ltexturesColorNormalize( lua_State *L ); +int ltexturesColorFromNormalized( lua_State *L ); +int ltexturesColorToHSV( lua_State *L ); int ltexturesColorFromHSV( lua_State *L ); +int ltexturesColorAlpha( lua_State *L ); +int ltexturesColorAlphaBlend( lua_State *L ); +int ltexturesGetColor( lua_State *L ); +int ltexturesGetPixelColor( lua_State *L ); +int ltexturesGetPixelDataSize( lua_State *L ); |
