//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class UnityEngine_RenderTextureWrap { public static void Register(LuaState L) { L.BeginClass(typeof(UnityEngine.RenderTexture), typeof(UnityEngine.Texture)); L.RegFunction("GetNativeDepthBufferPtr", GetNativeDepthBufferPtr); L.RegFunction("DiscardContents", DiscardContents); L.RegFunction("ResolveAntiAliasedSurface", ResolveAntiAliasedSurface); L.RegFunction("SetGlobalShaderProperty", SetGlobalShaderProperty); L.RegFunction("Create", Create); L.RegFunction("Release", Release); L.RegFunction("IsCreated", IsCreated); L.RegFunction("GenerateMips", GenerateMips); L.RegFunction("ConvertToEquirect", ConvertToEquirect); L.RegFunction("SupportsStencil", SupportsStencil); L.RegFunction("ReleaseTemporary", ReleaseTemporary); L.RegFunction("GetTemporary", GetTemporary); L.RegFunction("New", _CreateUnityEngine_RenderTexture); L.RegFunction("__eq", op_Equality); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("width", get_width, set_width); L.RegVar("height", get_height, set_height); L.RegVar("dimension", get_dimension, set_dimension); L.RegVar("graphicsFormat", get_graphicsFormat, set_graphicsFormat); L.RegVar("useMipMap", get_useMipMap, set_useMipMap); L.RegVar("sRGB", get_sRGB, null); L.RegVar("vrUsage", get_vrUsage, set_vrUsage); L.RegVar("memorylessMode", get_memorylessMode, set_memorylessMode); L.RegVar("format", get_format, set_format); L.RegVar("stencilFormat", get_stencilFormat, set_stencilFormat); L.RegVar("autoGenerateMips", get_autoGenerateMips, set_autoGenerateMips); L.RegVar("volumeDepth", get_volumeDepth, set_volumeDepth); L.RegVar("antiAliasing", get_antiAliasing, set_antiAliasing); L.RegVar("bindTextureMS", get_bindTextureMS, set_bindTextureMS); L.RegVar("enableRandomWrite", get_enableRandomWrite, set_enableRandomWrite); L.RegVar("useDynamicScale", get_useDynamicScale, set_useDynamicScale); L.RegVar("isPowerOfTwo", get_isPowerOfTwo, set_isPowerOfTwo); L.RegVar("active", get_active, set_active); L.RegVar("colorBuffer", get_colorBuffer, null); L.RegVar("depthBuffer", get_depthBuffer, null); L.RegVar("depth", get_depth, set_depth); L.RegVar("descriptor", get_descriptor, set_descriptor); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _CreateUnityEngine_RenderTexture(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1)) { UnityEngine.RenderTextureDescriptor arg0 = StackTraits.To(L, 1); UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0); ToLua.Push(L, obj); return 1; } else if (count == 1 && TypeChecker.CheckTypes(L, 1)) { UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0); ToLua.Push(L, obj); return 1; } else if (count == 3) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2); ToLua.Push(L, obj); return 1; } else if (count == 4 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.Experimental.Rendering.DefaultFormat arg3 = (UnityEngine.Experimental.Rendering.DefaultFormat)ToLua.ToObject(L, 4); UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3); ToLua.Push(L, obj); return 1; } else if (count == 4 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4); UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3); ToLua.Push(L, obj); return 1; } else if (count == 4 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4); UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3); ToLua.Push(L, obj); return 1; } else if (count == 5 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4); int arg4 = (int)LuaDLL.lua_tonumber(L, 5); UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3, arg4); ToLua.Push(L, obj); return 1; } else if (count == 5 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4); UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5); UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3, arg4); ToLua.Push(L, obj); return 1; } else if (count == 5 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4); int arg4 = (int)LuaDLL.lua_tonumber(L, 5); UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3, arg4); ToLua.Push(L, obj); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.RenderTexture.New"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int GetNativeDepthBufferPtr(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); System.IntPtr o = obj.GetNativeDepthBufferPtr(); LuaDLL.lua_pushlightuserdata(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int DiscardContents(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); obj.DiscardContents(); return 0; } else if (count == 3) { UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.DiscardContents(arg0, arg1); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.DiscardContents"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int ResolveAntiAliasedSurface(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); obj.ResolveAntiAliasedSurface(); return 0; } else if (count == 2) { UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 2); obj.ResolveAntiAliasedSurface(arg0); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.ResolveAntiAliasedSurface"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int SetGlobalShaderProperty(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.SetGlobalShaderProperty(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Create(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); bool o = obj.Create(); LuaDLL.lua_pushboolean(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Release(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); obj.Release(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int IsCreated(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); bool o = obj.IsCreated(); LuaDLL.lua_pushboolean(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int GenerateMips(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); obj.GenerateMips(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int ConvertToEquirect(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 2); obj.ConvertToEquirect(arg0); return 0; } else if (count == 3) { UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject(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); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int SupportsStencil(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); bool o = UnityEngine.RenderTexture.SupportsStencil(arg0); LuaDLL.lua_pushboolean(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int ReleaseTemporary(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1); UnityEngine.RenderTexture.ReleaseTemporary(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int GetTemporary(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { UnityEngine.RenderTextureDescriptor arg0 = StackTraits.Check(L, 1); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0); ToLua.Push(L, o); return 1; } else if (count == 2) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1); ToLua.Push(L, o); return 1; } else if (count == 3) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2); ToLua.Push(L, o); return 1; } else if (count == 4 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3); ToLua.Push(L, o); return 1; } else if (count == 4 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3); ToLua.Push(L, o); return 1; } else if (count == 5 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4); int arg4 = (int)LuaDLL.lua_tonumber(L, 5); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4); ToLua.Push(L, o); return 1; } else if (count == 5 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4); UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4); ToLua.Push(L, o); return 1; } else if (count == 6 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4); int arg4 = (int)LuaDLL.lua_tonumber(L, 5); UnityEngine.RenderTextureMemoryless arg5 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 6); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5); ToLua.Push(L, o); return 1; } else if (count == 6 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4); UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5); int arg5 = (int)LuaDLL.lua_tonumber(L, 6); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5); ToLua.Push(L, o); return 1; } else if (count == 7 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4); int arg4 = (int)LuaDLL.lua_tonumber(L, 5); UnityEngine.RenderTextureMemoryless arg5 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 6); UnityEngine.VRTextureUsage arg6 = (UnityEngine.VRTextureUsage)ToLua.ToObject(L, 7); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6); ToLua.Push(L, o); return 1; } else if (count == 7 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4); UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5); int arg5 = (int)LuaDLL.lua_tonumber(L, 6); UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 7); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6); ToLua.Push(L, o); return 1; } else if (count == 8 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4); int arg4 = (int)LuaDLL.lua_tonumber(L, 5); UnityEngine.RenderTextureMemoryless arg5 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 6); UnityEngine.VRTextureUsage arg6 = (UnityEngine.VRTextureUsage)ToLua.ToObject(L, 7); bool arg7 = LuaDLL.lua_toboolean(L, 8); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); ToLua.Push(L, o); return 1; } else if (count == 8 && TypeChecker.CheckTypes(L, 4)) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4); UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5); int arg5 = (int)LuaDLL.lua_tonumber(L, 6); UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 7); UnityEngine.VRTextureUsage arg7 = (UnityEngine.VRTextureUsage)ToLua.ToObject(L, 8); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); ToLua.Push(L, o); return 1; } else if (count == 9) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat)); UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite)); int arg5 = (int)LuaDLL.luaL_checknumber(L, 6); UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 7, typeof(UnityEngine.RenderTextureMemoryless)); UnityEngine.VRTextureUsage arg7 = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L, 8, typeof(UnityEngine.VRTextureUsage)); bool arg8 = LuaDLL.luaL_checkboolean(L, 9); UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); ToLua.Push(L, o); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.GetTemporary"); } } 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_width(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; int ret = obj.width; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index width on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_height(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; int ret = obj.height; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index height on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_dimension(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.Rendering.TextureDimension ret = obj.dimension; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index dimension on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_graphicsFormat(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.Experimental.Rendering.GraphicsFormat ret = obj.graphicsFormat; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index graphicsFormat on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_useMipMap(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool ret = obj.useMipMap; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index useMipMap on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_sRGB(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool ret = obj.sRGB; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index sRGB on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_vrUsage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.VRTextureUsage ret = obj.vrUsage; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index vrUsage on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_memorylessMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.RenderTextureMemoryless ret = obj.memorylessMode; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index memorylessMode on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_format(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.RenderTextureFormat ret = obj.format; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index format on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_stencilFormat(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.Experimental.Rendering.GraphicsFormat ret = obj.stencilFormat; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index stencilFormat on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_autoGenerateMips(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool ret = obj.autoGenerateMips; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index autoGenerateMips on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_volumeDepth(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; int ret = obj.volumeDepth; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index volumeDepth on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_antiAliasing(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; int ret = obj.antiAliasing; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index antiAliasing on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_bindTextureMS(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool ret = obj.bindTextureMS; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index bindTextureMS on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_enableRandomWrite(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool ret = obj.enableRandomWrite; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index enableRandomWrite on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_useDynamicScale(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool ret = obj.useDynamicScale; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index useDynamicScale on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_isPowerOfTwo(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool ret = obj.isPowerOfTwo; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index isPowerOfTwo on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_active(IntPtr L) { try { ToLua.Push(L, UnityEngine.RenderTexture.active); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_colorBuffer(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.RenderBuffer ret = obj.colorBuffer; ToLua.PushValue(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index colorBuffer on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_depthBuffer(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.RenderBuffer ret = obj.depthBuffer; ToLua.PushValue(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index depthBuffer on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_depth(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; int ret = obj.depth; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index depth on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_descriptor(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.RenderTextureDescriptor ret = obj.descriptor; ToLua.PushValue(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index descriptor on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_width(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.width = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index width on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_height(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.height = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index height on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_dimension(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.Rendering.TextureDimension arg0 = (UnityEngine.Rendering.TextureDimension)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.TextureDimension)); obj.dimension = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index dimension on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_graphicsFormat(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.Experimental.Rendering.GraphicsFormat arg0 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.CheckObject(L, 2, typeof(UnityEngine.Experimental.Rendering.GraphicsFormat)); obj.graphicsFormat = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index graphicsFormat on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_useMipMap(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.useMipMap = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index useMipMap on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_vrUsage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.VRTextureUsage arg0 = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L, 2, typeof(UnityEngine.VRTextureUsage)); obj.vrUsage = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index vrUsage on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_memorylessMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.RenderTextureMemoryless arg0 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureMemoryless)); obj.memorylessMode = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index memorylessMode on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_format(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.RenderTextureFormat arg0 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureFormat)); obj.format = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index format on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_stencilFormat(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.Experimental.Rendering.GraphicsFormat arg0 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.CheckObject(L, 2, typeof(UnityEngine.Experimental.Rendering.GraphicsFormat)); obj.stencilFormat = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index stencilFormat on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_autoGenerateMips(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.autoGenerateMips = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index autoGenerateMips on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_volumeDepth(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.volumeDepth = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index volumeDepth on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_antiAliasing(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.antiAliasing = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index antiAliasing on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_bindTextureMS(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.bindTextureMS = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index bindTextureMS on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_enableRandomWrite(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.enableRandomWrite = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index enableRandomWrite on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_useDynamicScale(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.useDynamicScale = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index useDynamicScale on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_isPowerOfTwo(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.isPowerOfTwo = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index isPowerOfTwo on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_active(IntPtr L) { try { UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 2); UnityEngine.RenderTexture.active = arg0; return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_depth(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.depth = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index depth on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_descriptor(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o; UnityEngine.RenderTextureDescriptor arg0 = StackTraits.Check(L, 2); obj.descriptor = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index descriptor on a nil value"); } } }