33 lines
664 B
C++
33 lines
664 B
C++
#include "Texture_BindLua.h"
|
|
|
|
using namespace wiGraphicsTypes;
|
|
|
|
const char Texture_BindLua::className[] = "Texture";
|
|
|
|
Luna<Texture_BindLua>::FunctionType Texture_BindLua::methods[] = {
|
|
{ NULL, NULL }
|
|
};
|
|
Luna<Texture_BindLua>::PropertyType Texture_BindLua::properties[] = {
|
|
{ NULL, NULL }
|
|
};
|
|
|
|
Texture_BindLua::Texture_BindLua(Texture2D* texture) :texture(texture)
|
|
{
|
|
}
|
|
Texture_BindLua::Texture_BindLua(lua_State *L)
|
|
{
|
|
texture = nullptr;
|
|
}
|
|
Texture_BindLua::~Texture_BindLua()
|
|
{
|
|
}
|
|
|
|
void Texture_BindLua::Bind()
|
|
{
|
|
static bool initialized = false;
|
|
if (!initialized)
|
|
{
|
|
Luna<Texture_BindLua>::Register(wiLua::GetGlobal()->GetLuaState());
|
|
initialized = true;
|
|
}
|
|
} |