源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1180 lines
35 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_RenderTextureWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.RenderTexture), typeof(UnityEngine.Texture));
  9. L.RegFunction("GetNativeDepthBufferPtr", GetNativeDepthBufferPtr);
  10. L.RegFunction("DiscardContents", DiscardContents);
  11. L.RegFunction("MarkRestoreExpected", MarkRestoreExpected);
  12. L.RegFunction("ResolveAntiAliasedSurface", ResolveAntiAliasedSurface);
  13. L.RegFunction("SetGlobalShaderProperty", SetGlobalShaderProperty);
  14. L.RegFunction("Create", Create);
  15. L.RegFunction("Release", Release);
  16. L.RegFunction("IsCreated", IsCreated);
  17. L.RegFunction("GenerateMips", GenerateMips);
  18. L.RegFunction("ConvertToEquirect", ConvertToEquirect);
  19. L.RegFunction("SupportsStencil", SupportsStencil);
  20. L.RegFunction("ReleaseTemporary", ReleaseTemporary);
  21. L.RegFunction("GetTemporary", GetTemporary);
  22. L.RegFunction("New", _CreateUnityEngine_RenderTexture);
  23. L.RegFunction("__eq", op_Equality);
  24. L.RegFunction("__tostring", ToLua.op_ToString);
  25. L.RegVar("width", get_width, set_width);
  26. L.RegVar("height", get_height, set_height);
  27. L.RegVar("dimension", get_dimension, set_dimension);
  28. L.RegVar("useMipMap", get_useMipMap, set_useMipMap);
  29. L.RegVar("sRGB", get_sRGB, null);
  30. L.RegVar("format", get_format, set_format);
  31. L.RegVar("vrUsage", get_vrUsage, set_vrUsage);
  32. L.RegVar("memorylessMode", get_memorylessMode, set_memorylessMode);
  33. L.RegVar("autoGenerateMips", get_autoGenerateMips, set_autoGenerateMips);
  34. L.RegVar("volumeDepth", get_volumeDepth, set_volumeDepth);
  35. L.RegVar("antiAliasing", get_antiAliasing, set_antiAliasing);
  36. L.RegVar("bindTextureMS", get_bindTextureMS, set_bindTextureMS);
  37. L.RegVar("enableRandomWrite", get_enableRandomWrite, set_enableRandomWrite);
  38. L.RegVar("useDynamicScale", get_useDynamicScale, set_useDynamicScale);
  39. L.RegVar("isPowerOfTwo", get_isPowerOfTwo, set_isPowerOfTwo);
  40. L.RegVar("active", get_active, set_active);
  41. L.RegVar("colorBuffer", get_colorBuffer, null);
  42. L.RegVar("depthBuffer", get_depthBuffer, null);
  43. L.RegVar("depth", get_depth, set_depth);
  44. L.RegVar("descriptor", get_descriptor, set_descriptor);
  45. L.EndClass();
  46. }
  47. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  48. static int _CreateUnityEngine_RenderTexture(IntPtr L)
  49. {
  50. try
  51. {
  52. int count = LuaDLL.lua_gettop(L);
  53. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.RenderTextureDescriptor)))
  54. {
  55. UnityEngine.RenderTextureDescriptor arg0 = (UnityEngine.RenderTextureDescriptor)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTextureDescriptor));
  56. UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0);
  57. ToLua.Push(L, obj);
  58. return 1;
  59. }
  60. else if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.RenderTexture)))
  61. {
  62. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.RenderTexture));
  63. UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0);
  64. ToLua.Push(L, obj);
  65. return 1;
  66. }
  67. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int)))
  68. {
  69. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  70. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  71. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  72. UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2);
  73. ToLua.Push(L, obj);
  74. return 1;
  75. }
  76. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.Experimental.Rendering.GraphicsFormat)))
  77. {
  78. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  79. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  80. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  81. UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.Experimental.Rendering.GraphicsFormat));
  82. UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3);
  83. ToLua.Push(L, obj);
  84. return 1;
  85. }
  86. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat)))
  87. {
  88. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  89. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  90. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  91. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
  92. UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3);
  93. ToLua.Push(L, obj);
  94. return 1;
  95. }
  96. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat), typeof(UnityEngine.RenderTextureReadWrite)))
  97. {
  98. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  99. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  100. int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
  101. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
  102. UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
  103. UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3, arg4);
  104. ToLua.Push(L, obj);
  105. return 1;
  106. }
  107. else
  108. {
  109. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.RenderTexture.New");
  110. }
  111. }
  112. catch(Exception e)
  113. {
  114. return LuaDLL.toluaL_exception(L, e);
  115. }
  116. }
  117. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  118. static int GetNativeDepthBufferPtr(IntPtr L)
  119. {
  120. try
  121. {
  122. ToLua.CheckArgsCount(L, 1);
  123. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTexture));
  124. System.IntPtr o = obj.GetNativeDepthBufferPtr();
  125. LuaDLL.lua_pushlightuserdata(L, o);
  126. return 1;
  127. }
  128. catch(Exception e)
  129. {
  130. return LuaDLL.toluaL_exception(L, e);
  131. }
  132. }
  133. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  134. static int DiscardContents(IntPtr L)
  135. {
  136. try
  137. {
  138. int count = LuaDLL.lua_gettop(L);
  139. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.RenderTexture)))
  140. {
  141. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.ToObject(L, 1);
  142. obj.DiscardContents();
  143. return 0;
  144. }
  145. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.RenderTexture), typeof(bool), typeof(bool)))
  146. {
  147. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.ToObject(L, 1);
  148. bool arg0 = LuaDLL.lua_toboolean(L, 2);
  149. bool arg1 = LuaDLL.lua_toboolean(L, 3);
  150. obj.DiscardContents(arg0, arg1);
  151. return 0;
  152. }
  153. else
  154. {
  155. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.DiscardContents");
  156. }
  157. }
  158. catch(Exception e)
  159. {
  160. return LuaDLL.toluaL_exception(L, e);
  161. }
  162. }
  163. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  164. static int MarkRestoreExpected(IntPtr L)
  165. {
  166. try
  167. {
  168. ToLua.CheckArgsCount(L, 1);
  169. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTexture));
  170. obj.MarkRestoreExpected();
  171. return 0;
  172. }
  173. catch(Exception e)
  174. {
  175. return LuaDLL.toluaL_exception(L, e);
  176. }
  177. }
  178. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  179. static int ResolveAntiAliasedSurface(IntPtr L)
  180. {
  181. try
  182. {
  183. int count = LuaDLL.lua_gettop(L);
  184. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.RenderTexture)))
  185. {
  186. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.ToObject(L, 1);
  187. obj.ResolveAntiAliasedSurface();
  188. return 0;
  189. }
  190. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.RenderTexture), typeof(UnityEngine.RenderTexture)))
  191. {
  192. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.ToObject(L, 1);
  193. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.ToObject(L, 2);
  194. obj.ResolveAntiAliasedSurface(arg0);
  195. return 0;
  196. }
  197. else
  198. {
  199. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.ResolveAntiAliasedSurface");
  200. }
  201. }
  202. catch(Exception e)
  203. {
  204. return LuaDLL.toluaL_exception(L, e);
  205. }
  206. }
  207. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  208. static int SetGlobalShaderProperty(IntPtr L)
  209. {
  210. try
  211. {
  212. ToLua.CheckArgsCount(L, 2);
  213. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTexture));
  214. string arg0 = ToLua.CheckString(L, 2);
  215. obj.SetGlobalShaderProperty(arg0);
  216. return 0;
  217. }
  218. catch(Exception e)
  219. {
  220. return LuaDLL.toluaL_exception(L, e);
  221. }
  222. }
  223. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  224. static int Create(IntPtr L)
  225. {
  226. try
  227. {
  228. ToLua.CheckArgsCount(L, 1);
  229. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTexture));
  230. bool o = obj.Create();
  231. LuaDLL.lua_pushboolean(L, o);
  232. return 1;
  233. }
  234. catch(Exception e)
  235. {
  236. return LuaDLL.toluaL_exception(L, e);
  237. }
  238. }
  239. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  240. static int Release(IntPtr L)
  241. {
  242. try
  243. {
  244. ToLua.CheckArgsCount(L, 1);
  245. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTexture));
  246. obj.Release();
  247. return 0;
  248. }
  249. catch(Exception e)
  250. {
  251. return LuaDLL.toluaL_exception(L, e);
  252. }
  253. }
  254. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  255. static int IsCreated(IntPtr L)
  256. {
  257. try
  258. {
  259. ToLua.CheckArgsCount(L, 1);
  260. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTexture));
  261. bool o = obj.IsCreated();
  262. LuaDLL.lua_pushboolean(L, o);
  263. return 1;
  264. }
  265. catch(Exception e)
  266. {
  267. return LuaDLL.toluaL_exception(L, e);
  268. }
  269. }
  270. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  271. static int GenerateMips(IntPtr L)
  272. {
  273. try
  274. {
  275. ToLua.CheckArgsCount(L, 1);
  276. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTexture));
  277. obj.GenerateMips();
  278. return 0;
  279. }
  280. catch(Exception e)
  281. {
  282. return LuaDLL.toluaL_exception(L, e);
  283. }
  284. }
  285. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  286. static int ConvertToEquirect(IntPtr L)
  287. {
  288. try
  289. {
  290. ToLua.CheckArgsCount(L, 3);
  291. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)ToLua.CheckObject(L, 1, typeof(UnityEngine.RenderTexture));
  292. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.RenderTexture));
  293. UnityEngine.Camera.MonoOrStereoscopicEye arg1 = (UnityEngine.Camera.MonoOrStereoscopicEye)ToLua.CheckObject(L, 3, typeof(UnityEngine.Camera.MonoOrStereoscopicEye));
  294. obj.ConvertToEquirect(arg0, arg1);
  295. return 0;
  296. }
  297. catch(Exception e)
  298. {
  299. return LuaDLL.toluaL_exception(L, e);
  300. }
  301. }
  302. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  303. static int SupportsStencil(IntPtr L)
  304. {
  305. try
  306. {
  307. ToLua.CheckArgsCount(L, 1);
  308. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.RenderTexture));
  309. bool o = UnityEngine.RenderTexture.SupportsStencil(arg0);
  310. LuaDLL.lua_pushboolean(L, o);
  311. return 1;
  312. }
  313. catch(Exception e)
  314. {
  315. return LuaDLL.toluaL_exception(L, e);
  316. }
  317. }
  318. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  319. static int ReleaseTemporary(IntPtr L)
  320. {
  321. try
  322. {
  323. ToLua.CheckArgsCount(L, 1);
  324. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.RenderTexture));
  325. UnityEngine.RenderTexture.ReleaseTemporary(arg0);
  326. return 0;
  327. }
  328. catch(Exception e)
  329. {
  330. return LuaDLL.toluaL_exception(L, e);
  331. }
  332. }
  333. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  334. static int GetTemporary(IntPtr L)
  335. {
  336. try
  337. {
  338. int count = LuaDLL.lua_gettop(L);
  339. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.RenderTextureDescriptor)))
  340. {
  341. UnityEngine.RenderTextureDescriptor arg0 = (UnityEngine.RenderTextureDescriptor)ToLua.ToObject(L, 1);
  342. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0);
  343. ToLua.Push(L, o);
  344. return 1;
  345. }
  346. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int)))
  347. {
  348. int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
  349. int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
  350. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1);
  351. ToLua.Push(L, o);
  352. return 1;
  353. }
  354. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int)))
  355. {
  356. int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
  357. int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
  358. int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
  359. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2);
  360. ToLua.Push(L, o);
  361. return 1;
  362. }
  363. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat)))
  364. {
  365. int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
  366. int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
  367. int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
  368. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
  369. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3);
  370. ToLua.Push(L, o);
  371. return 1;
  372. }
  373. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat), typeof(UnityEngine.RenderTextureReadWrite)))
  374. {
  375. int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
  376. int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
  377. int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
  378. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
  379. UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
  380. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4);
  381. ToLua.Push(L, o);
  382. return 1;
  383. }
  384. else if (count == 6 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat), typeof(UnityEngine.RenderTextureReadWrite), typeof(int)))
  385. {
  386. int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
  387. int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
  388. int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
  389. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
  390. UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
  391. int arg5 = (int)LuaDLL.lua_tonumber(L, 6);
  392. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5);
  393. ToLua.Push(L, o);
  394. return 1;
  395. }
  396. else if (count == 7 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat), typeof(UnityEngine.RenderTextureReadWrite), typeof(int), typeof(UnityEngine.RenderTextureMemoryless)))
  397. {
  398. int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
  399. int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
  400. int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
  401. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
  402. UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
  403. int arg5 = (int)LuaDLL.lua_tonumber(L, 6);
  404. UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 7);
  405. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  406. ToLua.Push(L, o);
  407. return 1;
  408. }
  409. else if (count == 8 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat), typeof(UnityEngine.RenderTextureReadWrite), typeof(int), typeof(UnityEngine.RenderTextureMemoryless), typeof(UnityEngine.VRTextureUsage)))
  410. {
  411. int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
  412. int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
  413. int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
  414. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
  415. UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
  416. int arg5 = (int)LuaDLL.lua_tonumber(L, 6);
  417. UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 7);
  418. UnityEngine.VRTextureUsage arg7 = (UnityEngine.VRTextureUsage)ToLua.ToObject(L, 8);
  419. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
  420. ToLua.Push(L, o);
  421. return 1;
  422. }
  423. else if (count == 9 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat), typeof(UnityEngine.RenderTextureReadWrite), typeof(int), typeof(UnityEngine.RenderTextureMemoryless), typeof(UnityEngine.VRTextureUsage), typeof(bool)))
  424. {
  425. int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
  426. int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
  427. int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
  428. UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
  429. UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
  430. int arg5 = (int)LuaDLL.lua_tonumber(L, 6);
  431. UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 7);
  432. UnityEngine.VRTextureUsage arg7 = (UnityEngine.VRTextureUsage)ToLua.ToObject(L, 8);
  433. bool arg8 = LuaDLL.lua_toboolean(L, 9);
  434. UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
  435. ToLua.Push(L, o);
  436. return 1;
  437. }
  438. else
  439. {
  440. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.GetTemporary");
  441. }
  442. }
  443. catch(Exception e)
  444. {
  445. return LuaDLL.toluaL_exception(L, e);
  446. }
  447. }
  448. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  449. static int op_Equality(IntPtr L)
  450. {
  451. try
  452. {
  453. ToLua.CheckArgsCount(L, 2);
  454. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  455. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  456. bool o = arg0 == arg1;
  457. LuaDLL.lua_pushboolean(L, o);
  458. return 1;
  459. }
  460. catch(Exception e)
  461. {
  462. return LuaDLL.toluaL_exception(L, e);
  463. }
  464. }
  465. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  466. static int get_width(IntPtr L)
  467. {
  468. object o = null;
  469. try
  470. {
  471. o = ToLua.ToObject(L, 1);
  472. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  473. int ret = obj.width;
  474. LuaDLL.lua_pushinteger(L, ret);
  475. return 1;
  476. }
  477. catch(Exception e)
  478. {
  479. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index width on a nil value" : e.Message);
  480. }
  481. }
  482. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  483. static int get_height(IntPtr L)
  484. {
  485. object o = null;
  486. try
  487. {
  488. o = ToLua.ToObject(L, 1);
  489. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  490. int ret = obj.height;
  491. LuaDLL.lua_pushinteger(L, ret);
  492. return 1;
  493. }
  494. catch(Exception e)
  495. {
  496. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index height on a nil value" : e.Message);
  497. }
  498. }
  499. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  500. static int get_dimension(IntPtr L)
  501. {
  502. object o = null;
  503. try
  504. {
  505. o = ToLua.ToObject(L, 1);
  506. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  507. UnityEngine.Rendering.TextureDimension ret = obj.dimension;
  508. ToLua.Push(L, ret);
  509. return 1;
  510. }
  511. catch(Exception e)
  512. {
  513. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dimension on a nil value" : e.Message);
  514. }
  515. }
  516. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  517. static int get_useMipMap(IntPtr L)
  518. {
  519. object o = null;
  520. try
  521. {
  522. o = ToLua.ToObject(L, 1);
  523. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  524. bool ret = obj.useMipMap;
  525. LuaDLL.lua_pushboolean(L, ret);
  526. return 1;
  527. }
  528. catch(Exception e)
  529. {
  530. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index useMipMap on a nil value" : e.Message);
  531. }
  532. }
  533. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  534. static int get_sRGB(IntPtr L)
  535. {
  536. object o = null;
  537. try
  538. {
  539. o = ToLua.ToObject(L, 1);
  540. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  541. bool ret = obj.sRGB;
  542. LuaDLL.lua_pushboolean(L, ret);
  543. return 1;
  544. }
  545. catch(Exception e)
  546. {
  547. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sRGB on a nil value" : e.Message);
  548. }
  549. }
  550. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  551. static int get_format(IntPtr L)
  552. {
  553. object o = null;
  554. try
  555. {
  556. o = ToLua.ToObject(L, 1);
  557. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  558. UnityEngine.RenderTextureFormat ret = obj.format;
  559. ToLua.Push(L, ret);
  560. return 1;
  561. }
  562. catch(Exception e)
  563. {
  564. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index format on a nil value" : e.Message);
  565. }
  566. }
  567. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  568. static int get_vrUsage(IntPtr L)
  569. {
  570. object o = null;
  571. try
  572. {
  573. o = ToLua.ToObject(L, 1);
  574. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  575. UnityEngine.VRTextureUsage ret = obj.vrUsage;
  576. ToLua.Push(L, ret);
  577. return 1;
  578. }
  579. catch(Exception e)
  580. {
  581. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index vrUsage on a nil value" : e.Message);
  582. }
  583. }
  584. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  585. static int get_memorylessMode(IntPtr L)
  586. {
  587. object o = null;
  588. try
  589. {
  590. o = ToLua.ToObject(L, 1);
  591. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  592. UnityEngine.RenderTextureMemoryless ret = obj.memorylessMode;
  593. ToLua.Push(L, ret);
  594. return 1;
  595. }
  596. catch(Exception e)
  597. {
  598. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index memorylessMode on a nil value" : e.Message);
  599. }
  600. }
  601. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  602. static int get_autoGenerateMips(IntPtr L)
  603. {
  604. object o = null;
  605. try
  606. {
  607. o = ToLua.ToObject(L, 1);
  608. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  609. bool ret = obj.autoGenerateMips;
  610. LuaDLL.lua_pushboolean(L, ret);
  611. return 1;
  612. }
  613. catch(Exception e)
  614. {
  615. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index autoGenerateMips on a nil value" : e.Message);
  616. }
  617. }
  618. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  619. static int get_volumeDepth(IntPtr L)
  620. {
  621. object o = null;
  622. try
  623. {
  624. o = ToLua.ToObject(L, 1);
  625. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  626. int ret = obj.volumeDepth;
  627. LuaDLL.lua_pushinteger(L, ret);
  628. return 1;
  629. }
  630. catch(Exception e)
  631. {
  632. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index volumeDepth on a nil value" : e.Message);
  633. }
  634. }
  635. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  636. static int get_antiAliasing(IntPtr L)
  637. {
  638. object o = null;
  639. try
  640. {
  641. o = ToLua.ToObject(L, 1);
  642. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  643. int ret = obj.antiAliasing;
  644. LuaDLL.lua_pushinteger(L, ret);
  645. return 1;
  646. }
  647. catch(Exception e)
  648. {
  649. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index antiAliasing on a nil value" : e.Message);
  650. }
  651. }
  652. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  653. static int get_bindTextureMS(IntPtr L)
  654. {
  655. object o = null;
  656. try
  657. {
  658. o = ToLua.ToObject(L, 1);
  659. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  660. bool ret = obj.bindTextureMS;
  661. LuaDLL.lua_pushboolean(L, ret);
  662. return 1;
  663. }
  664. catch(Exception e)
  665. {
  666. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bindTextureMS on a nil value" : e.Message);
  667. }
  668. }
  669. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  670. static int get_enableRandomWrite(IntPtr L)
  671. {
  672. object o = null;
  673. try
  674. {
  675. o = ToLua.ToObject(L, 1);
  676. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  677. bool ret = obj.enableRandomWrite;
  678. LuaDLL.lua_pushboolean(L, ret);
  679. return 1;
  680. }
  681. catch(Exception e)
  682. {
  683. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index enableRandomWrite on a nil value" : e.Message);
  684. }
  685. }
  686. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  687. static int get_useDynamicScale(IntPtr L)
  688. {
  689. object o = null;
  690. try
  691. {
  692. o = ToLua.ToObject(L, 1);
  693. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  694. bool ret = obj.useDynamicScale;
  695. LuaDLL.lua_pushboolean(L, ret);
  696. return 1;
  697. }
  698. catch(Exception e)
  699. {
  700. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index useDynamicScale on a nil value" : e.Message);
  701. }
  702. }
  703. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  704. static int get_isPowerOfTwo(IntPtr L)
  705. {
  706. object o = null;
  707. try
  708. {
  709. o = ToLua.ToObject(L, 1);
  710. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  711. bool ret = obj.isPowerOfTwo;
  712. LuaDLL.lua_pushboolean(L, ret);
  713. return 1;
  714. }
  715. catch(Exception e)
  716. {
  717. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isPowerOfTwo on a nil value" : e.Message);
  718. }
  719. }
  720. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  721. static int get_active(IntPtr L)
  722. {
  723. try
  724. {
  725. ToLua.Push(L, UnityEngine.RenderTexture.active);
  726. return 1;
  727. }
  728. catch(Exception e)
  729. {
  730. return LuaDLL.toluaL_exception(L, e);
  731. }
  732. }
  733. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  734. static int get_colorBuffer(IntPtr L)
  735. {
  736. object o = null;
  737. try
  738. {
  739. o = ToLua.ToObject(L, 1);
  740. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  741. UnityEngine.RenderBuffer ret = obj.colorBuffer;
  742. ToLua.PushValue(L, ret);
  743. return 1;
  744. }
  745. catch(Exception e)
  746. {
  747. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colorBuffer on a nil value" : e.Message);
  748. }
  749. }
  750. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  751. static int get_depthBuffer(IntPtr L)
  752. {
  753. object o = null;
  754. try
  755. {
  756. o = ToLua.ToObject(L, 1);
  757. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  758. UnityEngine.RenderBuffer ret = obj.depthBuffer;
  759. ToLua.PushValue(L, ret);
  760. return 1;
  761. }
  762. catch(Exception e)
  763. {
  764. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index depthBuffer on a nil value" : e.Message);
  765. }
  766. }
  767. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  768. static int get_depth(IntPtr L)
  769. {
  770. object o = null;
  771. try
  772. {
  773. o = ToLua.ToObject(L, 1);
  774. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  775. int ret = obj.depth;
  776. LuaDLL.lua_pushinteger(L, ret);
  777. return 1;
  778. }
  779. catch(Exception e)
  780. {
  781. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index depth on a nil value" : e.Message);
  782. }
  783. }
  784. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  785. static int get_descriptor(IntPtr L)
  786. {
  787. object o = null;
  788. try
  789. {
  790. o = ToLua.ToObject(L, 1);
  791. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  792. UnityEngine.RenderTextureDescriptor ret = obj.descriptor;
  793. ToLua.PushValue(L, ret);
  794. return 1;
  795. }
  796. catch(Exception e)
  797. {
  798. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index descriptor on a nil value" : e.Message);
  799. }
  800. }
  801. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  802. static int set_width(IntPtr L)
  803. {
  804. object o = null;
  805. try
  806. {
  807. o = ToLua.ToObject(L, 1);
  808. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  809. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  810. obj.width = arg0;
  811. return 0;
  812. }
  813. catch(Exception e)
  814. {
  815. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index width on a nil value" : e.Message);
  816. }
  817. }
  818. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  819. static int set_height(IntPtr L)
  820. {
  821. object o = null;
  822. try
  823. {
  824. o = ToLua.ToObject(L, 1);
  825. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  826. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  827. obj.height = arg0;
  828. return 0;
  829. }
  830. catch(Exception e)
  831. {
  832. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index height on a nil value" : e.Message);
  833. }
  834. }
  835. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  836. static int set_dimension(IntPtr L)
  837. {
  838. object o = null;
  839. try
  840. {
  841. o = ToLua.ToObject(L, 1);
  842. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  843. UnityEngine.Rendering.TextureDimension arg0 = (UnityEngine.Rendering.TextureDimension)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.TextureDimension));
  844. obj.dimension = arg0;
  845. return 0;
  846. }
  847. catch(Exception e)
  848. {
  849. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dimension on a nil value" : e.Message);
  850. }
  851. }
  852. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  853. static int set_useMipMap(IntPtr L)
  854. {
  855. object o = null;
  856. try
  857. {
  858. o = ToLua.ToObject(L, 1);
  859. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  860. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  861. obj.useMipMap = arg0;
  862. return 0;
  863. }
  864. catch(Exception e)
  865. {
  866. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index useMipMap on a nil value" : e.Message);
  867. }
  868. }
  869. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  870. static int set_format(IntPtr L)
  871. {
  872. object o = null;
  873. try
  874. {
  875. o = ToLua.ToObject(L, 1);
  876. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  877. UnityEngine.RenderTextureFormat arg0 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureFormat));
  878. obj.format = arg0;
  879. return 0;
  880. }
  881. catch(Exception e)
  882. {
  883. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index format on a nil value" : e.Message);
  884. }
  885. }
  886. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  887. static int set_vrUsage(IntPtr L)
  888. {
  889. object o = null;
  890. try
  891. {
  892. o = ToLua.ToObject(L, 1);
  893. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  894. UnityEngine.VRTextureUsage arg0 = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L, 2, typeof(UnityEngine.VRTextureUsage));
  895. obj.vrUsage = arg0;
  896. return 0;
  897. }
  898. catch(Exception e)
  899. {
  900. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index vrUsage on a nil value" : e.Message);
  901. }
  902. }
  903. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  904. static int set_memorylessMode(IntPtr L)
  905. {
  906. object o = null;
  907. try
  908. {
  909. o = ToLua.ToObject(L, 1);
  910. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  911. UnityEngine.RenderTextureMemoryless arg0 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureMemoryless));
  912. obj.memorylessMode = arg0;
  913. return 0;
  914. }
  915. catch(Exception e)
  916. {
  917. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index memorylessMode on a nil value" : e.Message);
  918. }
  919. }
  920. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  921. static int set_autoGenerateMips(IntPtr L)
  922. {
  923. object o = null;
  924. try
  925. {
  926. o = ToLua.ToObject(L, 1);
  927. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  928. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  929. obj.autoGenerateMips = arg0;
  930. return 0;
  931. }
  932. catch(Exception e)
  933. {
  934. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index autoGenerateMips on a nil value" : e.Message);
  935. }
  936. }
  937. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  938. static int set_volumeDepth(IntPtr L)
  939. {
  940. object o = null;
  941. try
  942. {
  943. o = ToLua.ToObject(L, 1);
  944. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  945. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  946. obj.volumeDepth = arg0;
  947. return 0;
  948. }
  949. catch(Exception e)
  950. {
  951. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index volumeDepth on a nil value" : e.Message);
  952. }
  953. }
  954. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  955. static int set_antiAliasing(IntPtr L)
  956. {
  957. object o = null;
  958. try
  959. {
  960. o = ToLua.ToObject(L, 1);
  961. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  962. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  963. obj.antiAliasing = arg0;
  964. return 0;
  965. }
  966. catch(Exception e)
  967. {
  968. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index antiAliasing on a nil value" : e.Message);
  969. }
  970. }
  971. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  972. static int set_bindTextureMS(IntPtr L)
  973. {
  974. object o = null;
  975. try
  976. {
  977. o = ToLua.ToObject(L, 1);
  978. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  979. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  980. obj.bindTextureMS = arg0;
  981. return 0;
  982. }
  983. catch(Exception e)
  984. {
  985. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bindTextureMS on a nil value" : e.Message);
  986. }
  987. }
  988. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  989. static int set_enableRandomWrite(IntPtr L)
  990. {
  991. object o = null;
  992. try
  993. {
  994. o = ToLua.ToObject(L, 1);
  995. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  996. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  997. obj.enableRandomWrite = arg0;
  998. return 0;
  999. }
  1000. catch(Exception e)
  1001. {
  1002. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index enableRandomWrite on a nil value" : e.Message);
  1003. }
  1004. }
  1005. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1006. static int set_useDynamicScale(IntPtr L)
  1007. {
  1008. object o = null;
  1009. try
  1010. {
  1011. o = ToLua.ToObject(L, 1);
  1012. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  1013. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1014. obj.useDynamicScale = arg0;
  1015. return 0;
  1016. }
  1017. catch(Exception e)
  1018. {
  1019. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index useDynamicScale on a nil value" : e.Message);
  1020. }
  1021. }
  1022. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1023. static int set_isPowerOfTwo(IntPtr L)
  1024. {
  1025. object o = null;
  1026. try
  1027. {
  1028. o = ToLua.ToObject(L, 1);
  1029. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  1030. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1031. obj.isPowerOfTwo = arg0;
  1032. return 0;
  1033. }
  1034. catch(Exception e)
  1035. {
  1036. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isPowerOfTwo on a nil value" : e.Message);
  1037. }
  1038. }
  1039. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1040. static int set_active(IntPtr L)
  1041. {
  1042. try
  1043. {
  1044. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.RenderTexture));
  1045. UnityEngine.RenderTexture.active = arg0;
  1046. return 0;
  1047. }
  1048. catch(Exception e)
  1049. {
  1050. return LuaDLL.toluaL_exception(L, e);
  1051. }
  1052. }
  1053. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1054. static int set_depth(IntPtr L)
  1055. {
  1056. object o = null;
  1057. try
  1058. {
  1059. o = ToLua.ToObject(L, 1);
  1060. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  1061. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1062. obj.depth = arg0;
  1063. return 0;
  1064. }
  1065. catch(Exception e)
  1066. {
  1067. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index depth on a nil value" : e.Message);
  1068. }
  1069. }
  1070. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1071. static int set_descriptor(IntPtr L)
  1072. {
  1073. object o = null;
  1074. try
  1075. {
  1076. o = ToLua.ToObject(L, 1);
  1077. UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
  1078. UnityEngine.RenderTextureDescriptor arg0 = (UnityEngine.RenderTextureDescriptor)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureDescriptor));
  1079. obj.descriptor = arg0;
  1080. return 0;
  1081. }
  1082. catch(Exception e)
  1083. {
  1084. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index descriptor on a nil value" : e.Message);
  1085. }
  1086. }
  1087. }