static int ConvertToEquirect(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject <UnityEngine.RenderTexture>(L, 1); UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject <UnityEngine.RenderTexture>(L, 2); obj.ConvertToEquirect(arg0); return(0); } else if (count == 3) { UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject <UnityEngine.RenderTexture>(L, 1); UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject <UnityEngine.RenderTexture>(L, 2); UnityEngine.Camera.MonoOrStereoscopicEye arg1 = (UnityEngine.Camera.MonoOrStereoscopicEye)ToLua.CheckObject(L, 3, typeof(UnityEngine.Camera.MonoOrStereoscopicEye)); obj.ConvertToEquirect(arg0, arg1); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.ConvertToEquirect")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static public int ConvertToEquirect(IntPtr l) { try { UnityEngine.RenderTexture self = (UnityEngine.RenderTexture)checkSelf(l); UnityEngine.RenderTexture a1; checkType(l, 2, out a1); UnityEngine.Camera.MonoOrStereoscopicEye a2; checkEnum(l, 3, out a2); self.ConvertToEquirect(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }