Example #1
0
int LuaFBOs::DeleteFBO(lua_State* L)
{
	if (lua_isnil(L, 1)) {
		return 0;
	}
	FBO* fbo = static_cast<FBO*>(luaL_checkudata(L, 1, "FBO"));
	fbo->Free(L);
	return 0;
}
Example #2
0
int LuaFBOs::DeleteFBO(lua_State* L)
{
	if (lua_isnil(L, 1)) {
		return 0;
	}
	FBO* fbo = (FBO*)luaL_checkudata(L, 1, "FBO");
	fbo->Free(L);
	return 0;
}
Example #3
0
int LuaFBOs::meta_gc(lua_State* L)
{
	FBO* fbo = static_cast<FBO*>(luaL_checkudata(L, 1, "FBO"));
	fbo->Free(L);
	return 0;
}
Example #4
0
int LuaFBOs::meta_gc(lua_State* L)
{
	FBO* fbo = (FBO*)luaL_checkudata(L, 1, "FBO");
	fbo->Free(L);
	return 0;
}