static int _m_GetPixel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); { int _x = LuaAPI.xlua_tointeger(L, 2); int _y = LuaAPI.xlua_tointeger(L, 3); var gen_ret = gen_to_be_invoked.GetPixel(_x, _y); translator.PushUnityEngineColor(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static StackObject *Ctor_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *__ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = new UnityEngine.WebCamTexture(); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _s_set_requestedHeight(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); gen_to_be_invoked.requestedHeight = LuaAPI.xlua_tointeger(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_isDepth(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDepth); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_autoFocusPoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); translator.PushAny(L, gen_to_be_invoked.autoFocusPoint); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_autoFocusPoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); System.Nullable <UnityEngine.Vector2> gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.autoFocusPoint = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
public override void ReadFrom(object obj) { base.ReadFrom(obj); if (obj == null) { return; } UnityEngine.WebCamTexture o = (UnityEngine.WebCamTexture)obj; deviceName = o.deviceName; requestedFPS = o.requestedFPS; requestedWidth = o.requestedWidth; requestedHeight = o.requestedHeight; }
public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects) { obj = base.WriteTo(obj, objects); if (obj == null) { return(null); } UnityEngine.WebCamTexture o = (UnityEngine.WebCamTexture)obj; o.deviceName = deviceName; o.requestedFPS = requestedFPS; o.requestedWidth = requestedWidth; o.requestedHeight = requestedHeight; return(o); }
static StackObject *Ctor_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.String deviceName = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = new UnityEngine.WebCamTexture(deviceName); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static StackObject *Ctor_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Int32 requestedHeight = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Int32 requestedWidth = ptr_of_this_method->Value; var result_of_this_method = new UnityEngine.WebCamTexture(requestedWidth, requestedHeight); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _m_Stop(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Stop( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetPixels(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { var gen_ret = gen_to_be_invoked.GetPixels( ); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { int _x = LuaAPI.xlua_tointeger(L, 2); int _y = LuaAPI.xlua_tointeger(L, 3); int _blockWidth = LuaAPI.xlua_tointeger(L, 4); int _blockHeight = LuaAPI.xlua_tointeger(L, 5); var gen_ret = gen_to_be_invoked.GetPixels(_x, _y, _blockWidth, _blockHeight); translator.Push(L, 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 UnityEngine.WebCamTexture.GetPixels!")); }
static int _m_GetPixels32(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.WebCamTexture gen_to_be_invoked = (UnityEngine.WebCamTexture)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { var gen_ret = gen_to_be_invoked.GetPixels32( ); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <UnityEngine.Color32[]>(L, 2)) { UnityEngine.Color32[] _colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); var gen_ret = gen_to_be_invoked.GetPixels32(_colors); translator.Push(L, 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 UnityEngine.WebCamTexture.GetPixels32!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { string _deviceName = LuaAPI.lua_tostring(L, 2); int _requestedWidth = LuaAPI.xlua_tointeger(L, 3); int _requestedHeight = LuaAPI.xlua_tointeger(L, 4); int _requestedFPS = LuaAPI.xlua_tointeger(L, 5); var gen_ret = new UnityEngine.WebCamTexture(_deviceName, _requestedWidth, _requestedHeight, _requestedFPS); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { string _deviceName = LuaAPI.lua_tostring(L, 2); int _requestedWidth = LuaAPI.xlua_tointeger(L, 3); int _requestedHeight = LuaAPI.xlua_tointeger(L, 4); var gen_ret = new UnityEngine.WebCamTexture(_deviceName, _requestedWidth, _requestedHeight); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _deviceName = LuaAPI.lua_tostring(L, 2); var gen_ret = new UnityEngine.WebCamTexture(_deviceName); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { int _requestedWidth = LuaAPI.xlua_tointeger(L, 2); int _requestedHeight = LuaAPI.xlua_tointeger(L, 3); int _requestedFPS = LuaAPI.xlua_tointeger(L, 4); var gen_ret = new UnityEngine.WebCamTexture(_requestedWidth, _requestedHeight, _requestedFPS); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { int _requestedWidth = LuaAPI.xlua_tointeger(L, 2); int _requestedHeight = LuaAPI.xlua_tointeger(L, 3); var gen_ret = new UnityEngine.WebCamTexture(_requestedWidth, _requestedHeight); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new UnityEngine.WebCamTexture(); translator.Push(L, 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 UnityEngine.WebCamTexture constructor!")); }