源战役客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

837 行
20 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_TextureWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.Texture), typeof(UnityEngine.Object));
  9. L.RegFunction("SetGlobalAnisotropicFilteringLimits", SetGlobalAnisotropicFilteringLimits);
  10. L.RegFunction("GetNativeTexturePtr", GetNativeTexturePtr);
  11. L.RegFunction("IncrementUpdateCount", IncrementUpdateCount);
  12. L.RegFunction("SetStreamingTextureMaterialDebugProperties", SetStreamingTextureMaterialDebugProperties);
  13. L.RegFunction("__eq", op_Equality);
  14. L.RegFunction("__tostring", ToLua.op_ToString);
  15. L.RegVar("masterTextureLimit", get_masterTextureLimit, set_masterTextureLimit);
  16. L.RegVar("anisotropicFiltering", get_anisotropicFiltering, set_anisotropicFiltering);
  17. L.RegVar("width", get_width, set_width);
  18. L.RegVar("height", get_height, set_height);
  19. L.RegVar("dimension", get_dimension, set_dimension);
  20. L.RegVar("isReadable", get_isReadable, null);
  21. L.RegVar("wrapMode", get_wrapMode, set_wrapMode);
  22. L.RegVar("wrapModeU", get_wrapModeU, set_wrapModeU);
  23. L.RegVar("wrapModeV", get_wrapModeV, set_wrapModeV);
  24. L.RegVar("wrapModeW", get_wrapModeW, set_wrapModeW);
  25. L.RegVar("filterMode", get_filterMode, set_filterMode);
  26. L.RegVar("anisoLevel", get_anisoLevel, set_anisoLevel);
  27. L.RegVar("mipMapBias", get_mipMapBias, set_mipMapBias);
  28. L.RegVar("texelSize", get_texelSize, null);
  29. L.RegVar("updateCount", get_updateCount, null);
  30. L.RegVar("totalTextureMemory", get_totalTextureMemory, null);
  31. L.RegVar("desiredTextureMemory", get_desiredTextureMemory, null);
  32. L.RegVar("targetTextureMemory", get_targetTextureMemory, null);
  33. L.RegVar("currentTextureMemory", get_currentTextureMemory, null);
  34. L.RegVar("nonStreamingTextureMemory", get_nonStreamingTextureMemory, null);
  35. L.RegVar("streamingMipmapUploadCount", get_streamingMipmapUploadCount, null);
  36. L.RegVar("streamingRendererCount", get_streamingRendererCount, null);
  37. L.RegVar("streamingTextureCount", get_streamingTextureCount, null);
  38. L.RegVar("nonStreamingTextureCount", get_nonStreamingTextureCount, null);
  39. L.RegVar("streamingTexturePendingLoadCount", get_streamingTexturePendingLoadCount, null);
  40. L.RegVar("streamingTextureLoadingCount", get_streamingTextureLoadingCount, null);
  41. L.RegVar("streamingTextureForceLoadAll", get_streamingTextureForceLoadAll, set_streamingTextureForceLoadAll);
  42. L.RegVar("streamingTextureDiscardUnusedMips", get_streamingTextureDiscardUnusedMips, set_streamingTextureDiscardUnusedMips);
  43. L.EndClass();
  44. }
  45. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  46. static int SetGlobalAnisotropicFilteringLimits(IntPtr L)
  47. {
  48. try
  49. {
  50. ToLua.CheckArgsCount(L, 2);
  51. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  52. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  53. UnityEngine.Texture.SetGlobalAnisotropicFilteringLimits(arg0, arg1);
  54. return 0;
  55. }
  56. catch(Exception e)
  57. {
  58. return LuaDLL.toluaL_exception(L, e);
  59. }
  60. }
  61. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  62. static int GetNativeTexturePtr(IntPtr L)
  63. {
  64. try
  65. {
  66. ToLua.CheckArgsCount(L, 1);
  67. UnityEngine.Texture obj = (UnityEngine.Texture)ToLua.CheckObject(L, 1, typeof(UnityEngine.Texture));
  68. System.IntPtr o = obj.GetNativeTexturePtr();
  69. LuaDLL.lua_pushlightuserdata(L, o);
  70. return 1;
  71. }
  72. catch(Exception e)
  73. {
  74. return LuaDLL.toluaL_exception(L, e);
  75. }
  76. }
  77. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  78. static int IncrementUpdateCount(IntPtr L)
  79. {
  80. try
  81. {
  82. ToLua.CheckArgsCount(L, 1);
  83. UnityEngine.Texture obj = (UnityEngine.Texture)ToLua.CheckObject(L, 1, typeof(UnityEngine.Texture));
  84. obj.IncrementUpdateCount();
  85. return 0;
  86. }
  87. catch(Exception e)
  88. {
  89. return LuaDLL.toluaL_exception(L, e);
  90. }
  91. }
  92. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  93. static int SetStreamingTextureMaterialDebugProperties(IntPtr L)
  94. {
  95. try
  96. {
  97. ToLua.CheckArgsCount(L, 0);
  98. UnityEngine.Texture.SetStreamingTextureMaterialDebugProperties();
  99. return 0;
  100. }
  101. catch(Exception e)
  102. {
  103. return LuaDLL.toluaL_exception(L, e);
  104. }
  105. }
  106. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  107. static int op_Equality(IntPtr L)
  108. {
  109. try
  110. {
  111. ToLua.CheckArgsCount(L, 2);
  112. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  113. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  114. bool o = arg0 == arg1;
  115. LuaDLL.lua_pushboolean(L, o);
  116. return 1;
  117. }
  118. catch(Exception e)
  119. {
  120. return LuaDLL.toluaL_exception(L, e);
  121. }
  122. }
  123. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  124. static int get_masterTextureLimit(IntPtr L)
  125. {
  126. try
  127. {
  128. LuaDLL.lua_pushinteger(L, UnityEngine.Texture.masterTextureLimit);
  129. return 1;
  130. }
  131. catch(Exception e)
  132. {
  133. return LuaDLL.toluaL_exception(L, e);
  134. }
  135. }
  136. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  137. static int get_anisotropicFiltering(IntPtr L)
  138. {
  139. try
  140. {
  141. ToLua.Push(L, UnityEngine.Texture.anisotropicFiltering);
  142. return 1;
  143. }
  144. catch(Exception e)
  145. {
  146. return LuaDLL.toluaL_exception(L, e);
  147. }
  148. }
  149. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  150. static int get_width(IntPtr L)
  151. {
  152. object o = null;
  153. try
  154. {
  155. o = ToLua.ToObject(L, 1);
  156. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  157. int ret = obj.width;
  158. LuaDLL.lua_pushinteger(L, ret);
  159. return 1;
  160. }
  161. catch(Exception e)
  162. {
  163. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index width on a nil value" : e.Message);
  164. }
  165. }
  166. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  167. static int get_height(IntPtr L)
  168. {
  169. object o = null;
  170. try
  171. {
  172. o = ToLua.ToObject(L, 1);
  173. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  174. int ret = obj.height;
  175. LuaDLL.lua_pushinteger(L, ret);
  176. return 1;
  177. }
  178. catch(Exception e)
  179. {
  180. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index height on a nil value" : e.Message);
  181. }
  182. }
  183. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  184. static int get_dimension(IntPtr L)
  185. {
  186. object o = null;
  187. try
  188. {
  189. o = ToLua.ToObject(L, 1);
  190. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  191. UnityEngine.Rendering.TextureDimension ret = obj.dimension;
  192. ToLua.Push(L, ret);
  193. return 1;
  194. }
  195. catch(Exception e)
  196. {
  197. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dimension on a nil value" : e.Message);
  198. }
  199. }
  200. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  201. static int get_isReadable(IntPtr L)
  202. {
  203. object o = null;
  204. try
  205. {
  206. o = ToLua.ToObject(L, 1);
  207. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  208. bool ret = obj.isReadable;
  209. LuaDLL.lua_pushboolean(L, ret);
  210. return 1;
  211. }
  212. catch(Exception e)
  213. {
  214. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isReadable on a nil value" : e.Message);
  215. }
  216. }
  217. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  218. static int get_wrapMode(IntPtr L)
  219. {
  220. object o = null;
  221. try
  222. {
  223. o = ToLua.ToObject(L, 1);
  224. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  225. UnityEngine.TextureWrapMode ret = obj.wrapMode;
  226. ToLua.Push(L, ret);
  227. return 1;
  228. }
  229. catch(Exception e)
  230. {
  231. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapMode on a nil value" : e.Message);
  232. }
  233. }
  234. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  235. static int get_wrapModeU(IntPtr L)
  236. {
  237. object o = null;
  238. try
  239. {
  240. o = ToLua.ToObject(L, 1);
  241. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  242. UnityEngine.TextureWrapMode ret = obj.wrapModeU;
  243. ToLua.Push(L, ret);
  244. return 1;
  245. }
  246. catch(Exception e)
  247. {
  248. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapModeU on a nil value" : e.Message);
  249. }
  250. }
  251. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  252. static int get_wrapModeV(IntPtr L)
  253. {
  254. object o = null;
  255. try
  256. {
  257. o = ToLua.ToObject(L, 1);
  258. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  259. UnityEngine.TextureWrapMode ret = obj.wrapModeV;
  260. ToLua.Push(L, ret);
  261. return 1;
  262. }
  263. catch(Exception e)
  264. {
  265. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapModeV on a nil value" : e.Message);
  266. }
  267. }
  268. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  269. static int get_wrapModeW(IntPtr L)
  270. {
  271. object o = null;
  272. try
  273. {
  274. o = ToLua.ToObject(L, 1);
  275. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  276. UnityEngine.TextureWrapMode ret = obj.wrapModeW;
  277. ToLua.Push(L, ret);
  278. return 1;
  279. }
  280. catch(Exception e)
  281. {
  282. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapModeW on a nil value" : e.Message);
  283. }
  284. }
  285. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  286. static int get_filterMode(IntPtr L)
  287. {
  288. object o = null;
  289. try
  290. {
  291. o = ToLua.ToObject(L, 1);
  292. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  293. UnityEngine.FilterMode ret = obj.filterMode;
  294. ToLua.Push(L, ret);
  295. return 1;
  296. }
  297. catch(Exception e)
  298. {
  299. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index filterMode on a nil value" : e.Message);
  300. }
  301. }
  302. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  303. static int get_anisoLevel(IntPtr L)
  304. {
  305. object o = null;
  306. try
  307. {
  308. o = ToLua.ToObject(L, 1);
  309. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  310. int ret = obj.anisoLevel;
  311. LuaDLL.lua_pushinteger(L, ret);
  312. return 1;
  313. }
  314. catch(Exception e)
  315. {
  316. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index anisoLevel on a nil value" : e.Message);
  317. }
  318. }
  319. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  320. static int get_mipMapBias(IntPtr L)
  321. {
  322. object o = null;
  323. try
  324. {
  325. o = ToLua.ToObject(L, 1);
  326. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  327. float ret = obj.mipMapBias;
  328. LuaDLL.lua_pushnumber(L, ret);
  329. return 1;
  330. }
  331. catch(Exception e)
  332. {
  333. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mipMapBias on a nil value" : e.Message);
  334. }
  335. }
  336. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  337. static int get_texelSize(IntPtr L)
  338. {
  339. object o = null;
  340. try
  341. {
  342. o = ToLua.ToObject(L, 1);
  343. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  344. UnityEngine.Vector2 ret = obj.texelSize;
  345. ToLua.Push(L, ret);
  346. return 1;
  347. }
  348. catch(Exception e)
  349. {
  350. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index texelSize on a nil value" : e.Message);
  351. }
  352. }
  353. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  354. static int get_updateCount(IntPtr L)
  355. {
  356. object o = null;
  357. try
  358. {
  359. o = ToLua.ToObject(L, 1);
  360. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  361. uint ret = obj.updateCount;
  362. LuaDLL.lua_pushnumber(L, ret);
  363. return 1;
  364. }
  365. catch(Exception e)
  366. {
  367. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index updateCount on a nil value" : e.Message);
  368. }
  369. }
  370. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  371. static int get_totalTextureMemory(IntPtr L)
  372. {
  373. try
  374. {
  375. LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.totalTextureMemory);
  376. return 1;
  377. }
  378. catch(Exception e)
  379. {
  380. return LuaDLL.toluaL_exception(L, e);
  381. }
  382. }
  383. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  384. static int get_desiredTextureMemory(IntPtr L)
  385. {
  386. try
  387. {
  388. LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.desiredTextureMemory);
  389. return 1;
  390. }
  391. catch(Exception e)
  392. {
  393. return LuaDLL.toluaL_exception(L, e);
  394. }
  395. }
  396. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  397. static int get_targetTextureMemory(IntPtr L)
  398. {
  399. try
  400. {
  401. LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.targetTextureMemory);
  402. return 1;
  403. }
  404. catch(Exception e)
  405. {
  406. return LuaDLL.toluaL_exception(L, e);
  407. }
  408. }
  409. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  410. static int get_currentTextureMemory(IntPtr L)
  411. {
  412. try
  413. {
  414. LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.currentTextureMemory);
  415. return 1;
  416. }
  417. catch(Exception e)
  418. {
  419. return LuaDLL.toluaL_exception(L, e);
  420. }
  421. }
  422. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  423. static int get_nonStreamingTextureMemory(IntPtr L)
  424. {
  425. try
  426. {
  427. LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.nonStreamingTextureMemory);
  428. return 1;
  429. }
  430. catch(Exception e)
  431. {
  432. return LuaDLL.toluaL_exception(L, e);
  433. }
  434. }
  435. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  436. static int get_streamingMipmapUploadCount(IntPtr L)
  437. {
  438. try
  439. {
  440. LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.streamingMipmapUploadCount);
  441. return 1;
  442. }
  443. catch(Exception e)
  444. {
  445. return LuaDLL.toluaL_exception(L, e);
  446. }
  447. }
  448. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  449. static int get_streamingRendererCount(IntPtr L)
  450. {
  451. try
  452. {
  453. LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.streamingRendererCount);
  454. return 1;
  455. }
  456. catch(Exception e)
  457. {
  458. return LuaDLL.toluaL_exception(L, e);
  459. }
  460. }
  461. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  462. static int get_streamingTextureCount(IntPtr L)
  463. {
  464. try
  465. {
  466. LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.streamingTextureCount);
  467. return 1;
  468. }
  469. catch(Exception e)
  470. {
  471. return LuaDLL.toluaL_exception(L, e);
  472. }
  473. }
  474. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  475. static int get_nonStreamingTextureCount(IntPtr L)
  476. {
  477. try
  478. {
  479. LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.nonStreamingTextureCount);
  480. return 1;
  481. }
  482. catch(Exception e)
  483. {
  484. return LuaDLL.toluaL_exception(L, e);
  485. }
  486. }
  487. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  488. static int get_streamingTexturePendingLoadCount(IntPtr L)
  489. {
  490. try
  491. {
  492. LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.streamingTexturePendingLoadCount);
  493. return 1;
  494. }
  495. catch(Exception e)
  496. {
  497. return LuaDLL.toluaL_exception(L, e);
  498. }
  499. }
  500. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  501. static int get_streamingTextureLoadingCount(IntPtr L)
  502. {
  503. try
  504. {
  505. LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.streamingTextureLoadingCount);
  506. return 1;
  507. }
  508. catch(Exception e)
  509. {
  510. return LuaDLL.toluaL_exception(L, e);
  511. }
  512. }
  513. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  514. static int get_streamingTextureForceLoadAll(IntPtr L)
  515. {
  516. try
  517. {
  518. LuaDLL.lua_pushboolean(L, UnityEngine.Texture.streamingTextureForceLoadAll);
  519. return 1;
  520. }
  521. catch(Exception e)
  522. {
  523. return LuaDLL.toluaL_exception(L, e);
  524. }
  525. }
  526. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  527. static int get_streamingTextureDiscardUnusedMips(IntPtr L)
  528. {
  529. try
  530. {
  531. LuaDLL.lua_pushboolean(L, UnityEngine.Texture.streamingTextureDiscardUnusedMips);
  532. return 1;
  533. }
  534. catch(Exception e)
  535. {
  536. return LuaDLL.toluaL_exception(L, e);
  537. }
  538. }
  539. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  540. static int set_masterTextureLimit(IntPtr L)
  541. {
  542. try
  543. {
  544. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  545. UnityEngine.Texture.masterTextureLimit = arg0;
  546. return 0;
  547. }
  548. catch(Exception e)
  549. {
  550. return LuaDLL.toluaL_exception(L, e);
  551. }
  552. }
  553. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  554. static int set_anisotropicFiltering(IntPtr L)
  555. {
  556. try
  557. {
  558. UnityEngine.AnisotropicFiltering arg0 = (UnityEngine.AnisotropicFiltering)ToLua.CheckObject(L, 2, typeof(UnityEngine.AnisotropicFiltering));
  559. UnityEngine.Texture.anisotropicFiltering = arg0;
  560. return 0;
  561. }
  562. catch(Exception e)
  563. {
  564. return LuaDLL.toluaL_exception(L, e);
  565. }
  566. }
  567. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  568. static int set_width(IntPtr L)
  569. {
  570. object o = null;
  571. try
  572. {
  573. o = ToLua.ToObject(L, 1);
  574. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  575. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  576. obj.width = arg0;
  577. return 0;
  578. }
  579. catch(Exception e)
  580. {
  581. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index width on a nil value" : e.Message);
  582. }
  583. }
  584. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  585. static int set_height(IntPtr L)
  586. {
  587. object o = null;
  588. try
  589. {
  590. o = ToLua.ToObject(L, 1);
  591. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  592. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  593. obj.height = arg0;
  594. return 0;
  595. }
  596. catch(Exception e)
  597. {
  598. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index height on a nil value" : e.Message);
  599. }
  600. }
  601. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  602. static int set_dimension(IntPtr L)
  603. {
  604. object o = null;
  605. try
  606. {
  607. o = ToLua.ToObject(L, 1);
  608. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  609. UnityEngine.Rendering.TextureDimension arg0 = (UnityEngine.Rendering.TextureDimension)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.TextureDimension));
  610. obj.dimension = arg0;
  611. return 0;
  612. }
  613. catch(Exception e)
  614. {
  615. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dimension on a nil value" : e.Message);
  616. }
  617. }
  618. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  619. static int set_wrapMode(IntPtr L)
  620. {
  621. object o = null;
  622. try
  623. {
  624. o = ToLua.ToObject(L, 1);
  625. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  626. UnityEngine.TextureWrapMode arg0 = (UnityEngine.TextureWrapMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.TextureWrapMode));
  627. obj.wrapMode = arg0;
  628. return 0;
  629. }
  630. catch(Exception e)
  631. {
  632. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapMode on a nil value" : e.Message);
  633. }
  634. }
  635. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  636. static int set_wrapModeU(IntPtr L)
  637. {
  638. object o = null;
  639. try
  640. {
  641. o = ToLua.ToObject(L, 1);
  642. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  643. UnityEngine.TextureWrapMode arg0 = (UnityEngine.TextureWrapMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.TextureWrapMode));
  644. obj.wrapModeU = arg0;
  645. return 0;
  646. }
  647. catch(Exception e)
  648. {
  649. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapModeU on a nil value" : e.Message);
  650. }
  651. }
  652. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  653. static int set_wrapModeV(IntPtr L)
  654. {
  655. object o = null;
  656. try
  657. {
  658. o = ToLua.ToObject(L, 1);
  659. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  660. UnityEngine.TextureWrapMode arg0 = (UnityEngine.TextureWrapMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.TextureWrapMode));
  661. obj.wrapModeV = arg0;
  662. return 0;
  663. }
  664. catch(Exception e)
  665. {
  666. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapModeV on a nil value" : e.Message);
  667. }
  668. }
  669. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  670. static int set_wrapModeW(IntPtr L)
  671. {
  672. object o = null;
  673. try
  674. {
  675. o = ToLua.ToObject(L, 1);
  676. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  677. UnityEngine.TextureWrapMode arg0 = (UnityEngine.TextureWrapMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.TextureWrapMode));
  678. obj.wrapModeW = arg0;
  679. return 0;
  680. }
  681. catch(Exception e)
  682. {
  683. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapModeW on a nil value" : e.Message);
  684. }
  685. }
  686. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  687. static int set_filterMode(IntPtr L)
  688. {
  689. object o = null;
  690. try
  691. {
  692. o = ToLua.ToObject(L, 1);
  693. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  694. UnityEngine.FilterMode arg0 = (UnityEngine.FilterMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.FilterMode));
  695. obj.filterMode = arg0;
  696. return 0;
  697. }
  698. catch(Exception e)
  699. {
  700. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index filterMode on a nil value" : e.Message);
  701. }
  702. }
  703. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  704. static int set_anisoLevel(IntPtr L)
  705. {
  706. object o = null;
  707. try
  708. {
  709. o = ToLua.ToObject(L, 1);
  710. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  711. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  712. obj.anisoLevel = arg0;
  713. return 0;
  714. }
  715. catch(Exception e)
  716. {
  717. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index anisoLevel on a nil value" : e.Message);
  718. }
  719. }
  720. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  721. static int set_mipMapBias(IntPtr L)
  722. {
  723. object o = null;
  724. try
  725. {
  726. o = ToLua.ToObject(L, 1);
  727. UnityEngine.Texture obj = (UnityEngine.Texture)o;
  728. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  729. obj.mipMapBias = arg0;
  730. return 0;
  731. }
  732. catch(Exception e)
  733. {
  734. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mipMapBias on a nil value" : e.Message);
  735. }
  736. }
  737. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  738. static int set_streamingTextureForceLoadAll(IntPtr L)
  739. {
  740. try
  741. {
  742. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  743. UnityEngine.Texture.streamingTextureForceLoadAll = arg0;
  744. return 0;
  745. }
  746. catch(Exception e)
  747. {
  748. return LuaDLL.toluaL_exception(L, e);
  749. }
  750. }
  751. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  752. static int set_streamingTextureDiscardUnusedMips(IntPtr L)
  753. {
  754. try
  755. {
  756. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  757. UnityEngine.Texture.streamingTextureDiscardUnusedMips = arg0;
  758. return 0;
  759. }
  760. catch(Exception e)
  761. {
  762. return LuaDLL.toluaL_exception(L, e);
  763. }
  764. }
  765. }