version 0.60 (#367)
- namespace refactor (example: wiGraphics:: -> wi::graphics) - provided namespace compatibility macro for old user code: WICKEDENGINE_BACKWARDS_COMPATIBILITY_0_59 - resource manager will return `Resource` instead of `shared_ptr<Resource>` objects - MAD shader optimizations - implemented alpha to coverage with alpha tested materials when MSAA is enabled - alpha testing fix with transparent shadow maps - TLAS and scene buffers will be recreated less frequently when things get added/removed from the scene
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#include "wiTexture_BindLua.h"
|
||||
|
||||
using namespace wi::graphics;
|
||||
|
||||
namespace wi::lua
|
||||
{
|
||||
|
||||
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(Texture texture) :texture(texture)
|
||||
{
|
||||
}
|
||||
Texture_BindLua::Texture_BindLua(lua_State* L)
|
||||
{
|
||||
}
|
||||
|
||||
void Texture_BindLua::Bind()
|
||||
{
|
||||
static bool initialized = false;
|
||||
if (!initialized)
|
||||
{
|
||||
Luna<Texture_BindLua>::Register(wi::lua::GetLuaState());
|
||||
initialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user