Added love.math.gammaToLinear and love.math.linearToGamma for converting RGB color values from the sRGB color-space to linear and vice-versa.

This commit is contained in:
Alex Szpakowski
2014-02-04 19:45:50 -04:00
parent 823b1babc8
commit e54d771be4
4 changed files with 108 additions and 0 deletions
+2
View File
@@ -38,6 +38,8 @@ int w_newRandomGenerator(lua_State *L);
int w_newBezierCurve(lua_State *L);
int w_triangulate(lua_State *L);
int w_isConvex(lua_State *L);
int w_gammaToLinear(lua_State *L);
int w_linearToGamma(lua_State *L);
int w_noise(lua_State *L);
extern "C" LOVE_EXPORT int luaopen_love_math(lua_State *L);