コード例 #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));
     }
 }
コード例 #16
0
 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);
コード例 #18
0
 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
 }
コード例 #19
0
 internal static void InvokeTriggerInitialize(CustomRenderTexture crt) => initializeTriggered?.Invoke(crt);
コード例 #20
0
 internal static void InvokeTriggerUpdate(CustomRenderTexture crt, int updateCount) => updateTriggered?.Invoke(crt, updateCount);
コード例 #21
0
 private static void InvokeOnTextureUnloaded_Internal(CustomRenderTexture source)
 => textureUnloaded?.Invoke(source);
コード例 #22
0
 private static extern void Internal_CreateCustomRenderTexture([Writable] CustomRenderTexture rt, RenderTextureReadWrite readWrite);