Exposed Geometry:setVertexColors and Geometry:hasVertexColors, to enable/disable per-vertex colors.

Vertex colors are automatically enabled if newGeometry or setVertex is called with a color other than 255,255,255,255
This commit is contained in:
Alex Szpakowski
2013-04-24 12:04:24 -07:00
parent 3b05ec0635
commit d0970658bf
3 changed files with 27 additions and 9 deletions
+3 -1
View File
@@ -33,10 +33,12 @@ namespace opengl
{
Geometry *luax_checkgeometry(lua_State *L, int idx);
int w_Geometry_flip(lua_State *L);
int w_Geometry_getVertexCount(lua_State *L);
int w_Geometry_getVertex(lua_State *L);
int w_Geometry_setVertex(lua_State *L);
int w_Geometry_flip(lua_State *L);
int w_Geometry_setVertexColors(lua_State *L);
int w_Geometry_hasVertexColors(lua_State *L);
extern "C" int luaopen_geometry(lua_State *L);
} // opengl