Abstracted lua bindings for general Texture methods into wrap_Texture.cpp

This commit is contained in:
Alex Szpakowski
2014-01-04 21:19:03 -04:00
parent 6756bc3c2c
commit 510ed6f11e
13 changed files with 222 additions and 220 deletions
+2 -1
View File
@@ -22,6 +22,7 @@
#include "wrap_Mesh.h"
#include "Image.h"
#include "Canvas.h"
#include "wrap_Texture.h"
// C++
#include <typeinfo>
@@ -243,7 +244,7 @@ int w_Mesh_setTexture(lua_State *L)
t->setTexture();
else
{
Texture *tex = luax_checktype<Texture>(L, 2, "Texture", GRAPHICS_TEXTURE_T);
Texture *tex = luax_checktexture(L, 2);
t->setTexture(tex);
}