|
|
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
-
- public class ScreenEffectWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(ScreenEffect), typeof(UnityEngine.MonoBehaviour));
- L.RegFunction("GetSupported", GetSupported);
- L.RegFunction("RenderBlurScreenShot", RenderBlurScreenShot);
- L.RegFunction("ReleaseRenderTexCache", ReleaseRenderTexCache);
- L.RegFunction("ReleaseTargetRenderTexture", ReleaseTargetRenderTexture);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("blurMaterial", get_blurMaterial, set_blurMaterial);
- L.RegVar("render_blur_effect", get_render_blur_effect, set_render_blur_effect);
- L.RegVar("get_screen_shot", get_get_screen_shot, set_get_screen_shot);
- L.RegVar("blurSpread", get_blurSpread, set_blurSpread);
- L.RegVar("blur_amount", get_blur_amount, set_blur_amount);
- L.RegVar("recurveMaxNum", get_recurveMaxNum, set_recurveMaxNum);
- L.RegVar("downSample", get_downSample, set_downSample);
- L.RegVar("use_dual_blur", get_use_dual_blur, set_use_dual_blur);
- L.RegVar("dual_blur_mat", get_dual_blur_mat, set_dual_blur_mat);
- L.EndClass();
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetSupported(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- ScreenEffect obj = (ScreenEffect)ToLua.CheckObject(L, 1, typeof(ScreenEffect));
- bool o = obj.GetSupported();
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int RenderBlurScreenShot(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 4);
- ScreenEffect obj = (ScreenEffect)ToLua.CheckObject(L, 1, typeof(ScreenEffect));
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
- LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
- obj.RenderBlurScreenShot(arg0, arg1, arg2);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReleaseRenderTexCache(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- ScreenEffect obj = (ScreenEffect)ToLua.CheckObject(L, 1, typeof(ScreenEffect));
- obj.ReleaseRenderTexCache();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ReleaseTargetRenderTexture(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- ScreenEffect obj = (ScreenEffect)ToLua.CheckObject(L, 1, typeof(ScreenEffect));
- UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.RenderTexture));
- obj.ReleaseTargetRenderTexture(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_blurMaterial(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- UnityEngine.Material ret = obj.blurMaterial;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurMaterial on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_render_blur_effect(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- bool ret = obj.render_blur_effect;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index render_blur_effect on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_get_screen_shot(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- bool ret = obj.get_screen_shot;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index get_screen_shot on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_blurSpread(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- float ret = obj.blurSpread;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurSpread on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_blur_amount(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- float ret = obj.blur_amount;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blur_amount on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_recurveMaxNum(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- int ret = obj.recurveMaxNum;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index recurveMaxNum on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_downSample(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- int ret = obj.downSample;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index downSample on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_use_dual_blur(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- bool ret = obj.use_dual_blur;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_dual_blur on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_dual_blur_mat(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- UnityEngine.Material ret = obj.dual_blur_mat;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dual_blur_mat on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_blurMaterial(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Material));
- obj.blurMaterial = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurMaterial on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_render_blur_effect(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.render_blur_effect = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index render_blur_effect on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_get_screen_shot(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.get_screen_shot = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index get_screen_shot on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_blurSpread(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.blurSpread = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blurSpread on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_blur_amount(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.blur_amount = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blur_amount on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_recurveMaxNum(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.recurveMaxNum = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index recurveMaxNum on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_downSample(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.downSample = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index downSample on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_use_dual_blur(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.use_dual_blur = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index use_dual_blur on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_dual_blur_mat(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- ScreenEffect obj = (ScreenEffect)o;
- UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Material));
- obj.dual_blur_mat = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dual_blur_mat on a nil value" : e.Message);
- }
- }
- }
-
|