diff options
Diffstat (limited to 'Runtime/Scripting/Rendering/Rendering.bind.cpp')
-rw-r--r-- | Runtime/Scripting/Rendering/Rendering.bind.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Runtime/Scripting/Rendering/Rendering.bind.cpp b/Runtime/Scripting/Rendering/Rendering.bind.cpp index 197ff0a..cb294a3 100644 --- a/Runtime/Scripting/Rendering/Rendering.bind.cpp +++ b/Runtime/Scripting/Rendering/Rendering.bind.cpp @@ -2,6 +2,7 @@ #include "Runtime/Graphics/Texture.h" #include "Runtime/Graphics/ImageData.h" #include "Runtime/Graphics/UIQuad.h" +#include "Runtime/Graphics/GfxDevice.h" // Rendering.DrawUIQuad({}) static int DrawUIQuad(lua_State* L) @@ -13,8 +14,15 @@ static int DrawUIQuad(lua_State* L) return 0; } +static int ResetUniformState(lua_State* L) +{ + g_GfxDevice.ResetUniformsState(); + return 0; +} + static luaL_Reg funcs[] = { {"DrawUIQuad", DrawUIQuad}, + {"ResetUniformState", ResetUniformState}, {0, 0} }; |