public void __Gen_Delegate_Imp13(Engine.ITexture p0, object p1) { #if THREAD_SAFT || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int err_func = LuaAPI.load_error_func(L, errorFuncRef); ObjectTranslator translator = luaEnv.translator; LuaAPI.lua_getref(L, luaReference); translator.Push(L, p0); translator.PushAny(L, p1); int __gen_error = LuaAPI.lua_pcall(L, 2, 0, err_func); if (__gen_error != 0) { luaEnv.ThrowExceptionFromError(err_func - 1); } LuaAPI.lua_settop(L, err_func - 1); #if THREAD_SAFT || HOTFIX_ENABLE } #endif }
static int _m_CrateTexture(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Engine.AssetManager __cl_gen_to_be_invoked = (Engine.AssetManager)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <Engine.CreateTextureEvent>(L, 3) && translator.Assignable <object>(L, 4) && translator.Assignable <Engine.TaskPriority>(L, 5)) { string strTextureName = LuaAPI.lua_tostring(L, 2); Engine.CreateTextureEvent callBack = translator.GetDelegate <Engine.CreateTextureEvent>(L, 3); object custumParam = translator.GetObject(L, 4, typeof(object)); Engine.TaskPriority ePriority; translator.Get(L, 5, out ePriority); Engine.ITexture __cl_gen_ret = __cl_gen_to_be_invoked.CrateTexture(strTextureName, callBack, custumParam, ePriority); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <Engine.CreateTextureEvent>(L, 3) && translator.Assignable <object>(L, 4)) { string strTextureName = LuaAPI.lua_tostring(L, 2); Engine.CreateTextureEvent callBack = translator.GetDelegate <Engine.CreateTextureEvent>(L, 3); object custumParam = translator.GetObject(L, 4, typeof(object)); Engine.ITexture __cl_gen_ret = __cl_gen_to_be_invoked.CrateTexture(strTextureName, callBack, custumParam); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <Engine.CreateTextureEvent>(L, 3)) { string strTextureName = LuaAPI.lua_tostring(L, 2); Engine.CreateTextureEvent callBack = translator.GetDelegate <Engine.CreateTextureEvent>(L, 3); Engine.ITexture __cl_gen_ret = __cl_gen_to_be_invoked.CrateTexture(strTextureName, callBack); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to Engine.AssetManager.CrateTexture!")); }
private void Awake() { string path = "map/commontexture/Distortion2.unity3d"; Engine.ITexture mapTex = null; Engine.RareEngine.Instance().GetRenderSystem().CreateTexture(ref path, ref mapTex, null, null, Engine.TaskPriority.TaskPriority_Immediate); texture = mapTex.GetTexture(); shader = Shader.Find("HeatDistortion"); }
private void ReleaseTex() { if (null != m_texture) { m_texture.Release(); m_texture = null; } if (m__TextureBg != null) { m__TextureBg.mainTexture = null; } }
static int _m_GetTexture(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Engine.ITexture __cl_gen_to_be_invoked = (Engine.ITexture)translator.FastGetCSObj(L, 1); try { { UnityEngine.Texture __cl_gen_ret = __cl_gen_to_be_invoked.GetTexture( ); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }