Пример #1
0
 static public int Update(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
             self.Update();
             pushValue(l, true);
             return(1);
         }
         else if (argc == 2)
         {
             UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
             System.Int32 a1;
             checkType(l, 2, out a1);
             self.Update(a1);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #2
0
 static public int get_doubleBuffered(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.doubleBuffered);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #3
0
 static public int get_wrapUpdateZones(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.wrapUpdateZones);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #4
0
 static public int get_cubemapFaceMask(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.cubemapFaceMask);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #5
0
 static public int get_updateZoneSpace(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         pushValue(l, true);
         pushEnum(l, (int)self.updateZoneSpace);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #6
0
 static public int get_initializationColor(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.initializationColor);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #7
0
 static public int Initialize(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         self.Initialize();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #8
0
 static public int constructor(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.CustomRenderTexture o;
         if (argc == 5)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             UnityEngine.RenderTextureFormat a3;
             checkEnum(l, 4, out a3);
             UnityEngine.RenderTextureReadWrite a4;
             checkEnum(l, 5, out a4);
             o = new UnityEngine.CustomRenderTexture(a1, a2, a3, a4);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 4)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             UnityEngine.RenderTextureFormat a3;
             checkEnum(l, 4, out a3);
             o = new UnityEngine.CustomRenderTexture(a1, a2, a3);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 3)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             o = new UnityEngine.CustomRenderTexture(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #9
0
 static public int SetUpdateZones(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture             self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         UnityEngine.CustomRenderTextureUpdateZone[] a1;
         checkArray(l, 2, out a1);
         self.SetUpdateZones(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #10
0
 static public int set_cubemapFaceMask(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         System.UInt32 v;
         checkType(l, 2, out v);
         self.cubemapFaceMask = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #11
0
 static public int set_shaderPass(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         int v;
         checkType(l, 2, out v);
         self.shaderPass = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #12
0
 static public int set_updateZoneSpace(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         UnityEngine.CustomRenderTextureUpdateZoneSpace v;
         checkEnum(l, 2, out v);
         self.updateZoneSpace = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #13
0
 static public int set_initializationColor(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         UnityEngine.Color v;
         checkType(l, 2, out v);
         self.initializationColor = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #14
0
 static public int set_wrapUpdateZones(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.wrapUpdateZones = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #15
0
 static public int GetUpdateZones(IntPtr l)
 {
     try {
         UnityEngine.CustomRenderTexture self = (UnityEngine.CustomRenderTexture)checkSelf(l);
         System.Collections.Generic.List <UnityEngine.CustomRenderTextureUpdateZone> a1;
         checkType(l, 2, out a1);
         self.GetUpdateZones(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.CustomRenderTexture o;
         if (argc == 6)
         {
             System.Int32 a1;
             checkType(l, 3, out a1);
             System.Int32 a2;
             checkType(l, 4, out a2);
             UnityEngine.RenderTextureFormat a3;
             checkEnum(l, 5, out a3);
             UnityEngine.RenderTextureReadWrite a4;
             checkEnum(l, 6, out a4);
             o = new UnityEngine.CustomRenderTexture(a1, a2, a3, a4);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, "ctor__Int32__Int32__RenderTextureFormat", argc, 2, typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat)))
         {
             System.Int32 a1;
             checkType(l, 3, out a1);
             System.Int32 a2;
             checkType(l, 4, out a2);
             UnityEngine.RenderTextureFormat a3;
             checkEnum(l, 5, out a3);
             o = new UnityEngine.CustomRenderTexture(a1, a2, a3);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, "ctor__Int32__Int32__GraphicsFormat", argc, 2, typeof(int), typeof(int), typeof(UnityEngine.Experimental.Rendering.GraphicsFormat)))
         {
             System.Int32 a1;
             checkType(l, 3, out a1);
             System.Int32 a2;
             checkType(l, 4, out a2);
             UnityEngine.Experimental.Rendering.GraphicsFormat a3;
             checkEnum(l, 5, out a3);
             o = new UnityEngine.CustomRenderTexture(a1, a2, a3);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 4)
         {
             System.Int32 a1;
             checkType(l, 3, out a1);
             System.Int32 a2;
             checkType(l, 4, out a2);
             o = new UnityEngine.CustomRenderTexture(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #17
0
 extern private static void Internal_CreateCustomRenderTexture([Writable] CustomRenderTexture rt);
 static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.CustomRenderTexture o;
         if (argc == 5)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             UnityEngine.RenderTextureFormat a3;
             a3 = (UnityEngine.RenderTextureFormat)LuaDLL.luaL_checkinteger(l, 4);
             UnityEngine.RenderTextureReadWrite a4;
             a4 = (UnityEngine.RenderTextureReadWrite)LuaDLL.luaL_checkinteger(l, 5);
             o  = new UnityEngine.CustomRenderTexture(a1, a2, a3, a4);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat)))
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             UnityEngine.RenderTextureFormat a3;
             a3 = (UnityEngine.RenderTextureFormat)LuaDLL.luaL_checkinteger(l, 4);
             o  = new UnityEngine.CustomRenderTexture(a1, a2, a3);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 3)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             o = new UnityEngine.CustomRenderTexture(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(int), typeof(int), typeof(UnityEngine.Experimental.Rendering.DefaultFormat)))
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             UnityEngine.Experimental.Rendering.DefaultFormat a3;
             a3 = (UnityEngine.Experimental.Rendering.DefaultFormat)LuaDLL.luaL_checkinteger(l, 4);
             o  = new UnityEngine.CustomRenderTexture(a1, a2, a3);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(int), typeof(int), typeof(UnityEngine.Experimental.Rendering.GraphicsFormat)))
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             UnityEngine.Experimental.Rendering.GraphicsFormat a3;
             a3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)LuaDLL.luaL_checkinteger(l, 4);
             o  = new UnityEngine.CustomRenderTexture(a1, a2, a3);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
 internal static void InvokeTriggerInitialize(CustomRenderTexture crt) => initializeTriggered?.Invoke(crt);
 internal static void InvokeTriggerUpdate(CustomRenderTexture crt, int updateCount) => updateTriggered?.Invoke(crt, updateCount);
 private static void InvokeOnTextureUnloaded_Internal(CustomRenderTexture source)
 => textureUnloaded?.Invoke(source);
Пример #22
0
 private static extern void Internal_CreateCustomRenderTexture([Writable] CustomRenderTexture rt, RenderTextureReadWrite readWrite);