static int _m_GetPosition(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.VertexBuffer gen_to_be_invoked = (FairyGUI.VertexBuffer)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); UnityEngine.Vector3 gen_ret = gen_to_be_invoked.GetPosition( _index); translator.PushUnityEngineVector3(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_AddTriangle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.VertexBuffer gen_to_be_invoked = (FairyGUI.VertexBuffer)translator.FastGetCSObj(L, 1); { int _idx0 = LuaAPI.xlua_tointeger(L, 2); int _idx1 = LuaAPI.xlua_tointeger(L, 3); int _idx2 = LuaAPI.xlua_tointeger(L, 4); gen_to_be_invoked.AddTriangle( _idx0, _idx1, _idx2); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_AddTriangles(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.VertexBuffer gen_to_be_invoked = (FairyGUI.VertexBuffer)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _startVertexIndex = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.AddTriangles( _startVertexIndex); return(0); } if (gen_param_count == 1) { gen_to_be_invoked.AddTriangles( ); return(0); } if (gen_param_count == 3 && translator.Assignable <int[]>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { int[] _idxList = (int[])translator.GetObject(L, 2, typeof(int[])); int _startVertexIndex = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.AddTriangles( _idxList, _startVertexIndex); return(0); } if (gen_param_count == 2 && translator.Assignable <int[]>(L, 2)) { int[] _idxList = (int[])translator.GetObject(L, 2, typeof(int[])); gen_to_be_invoked.AddTriangles( _idxList); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.VertexBuffer.AddTriangles!")); }
static int _m_OnPopulateMesh(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.SelectionShape gen_to_be_invoked = (FairyGUI.SelectionShape)translator.FastGetCSObj(L, 1); { FairyGUI.VertexBuffer _vb = (FairyGUI.VertexBuffer)translator.GetObject(L, 2, typeof(FairyGUI.VertexBuffer)); gen_to_be_invoked.OnPopulateMesh( _vb ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } }
static int _m_RepeatColors(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.VertexBuffer gen_to_be_invoked = (FairyGUI.VertexBuffer)translator.FastGetCSObj(L, 1); { UnityEngine.Color32[] _value = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); int _startIndex = LuaAPI.xlua_tointeger(L, 3); int _count = LuaAPI.xlua_tointeger(L, 4); gen_to_be_invoked.RepeatColors( _value, _startIndex, _count); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Begin_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 0) { FairyGUI.VertexBuffer gen_ret = FairyGUI.VertexBuffer.Begin( ); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 1 && translator.Assignable <FairyGUI.VertexBuffer>(L, 1)) { FairyGUI.VertexBuffer _source = (FairyGUI.VertexBuffer)translator.GetObject(L, 1, typeof(FairyGUI.VertexBuffer)); FairyGUI.VertexBuffer gen_ret = FairyGUI.VertexBuffer.Begin(_source); 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 FairyGUI.VertexBuffer.Begin!")); }
static int _m_GetUVAtPosition(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.VertexBuffer gen_to_be_invoked = (FairyGUI.VertexBuffer)translator.FastGetCSObj(L, 1); { UnityEngine.Vector2 _position; translator.Get(L, 2, out _position); bool _usePercent = LuaAPI.lua_toboolean(L, 3); UnityEngine.Vector2 gen_ret = gen_to_be_invoked.GetUVAtPosition(_position, _usePercent); translator.PushUnityEngineVector2(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_AddQuad(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.VertexBuffer gen_to_be_invoked = (FairyGUI.VertexBuffer)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <UnityEngine.Rect>(L, 2)) { UnityEngine.Rect _vertRect; translator.Get(L, 2, out _vertRect); gen_to_be_invoked.AddQuad( _vertRect); return(0); } if (gen_param_count == 3 && translator.Assignable <UnityEngine.Rect>(L, 2) && translator.Assignable <UnityEngine.Color32>(L, 3)) { UnityEngine.Rect _vertRect; translator.Get(L, 2, out _vertRect); UnityEngine.Color32 _color; translator.Get(L, 3, out _color); gen_to_be_invoked.AddQuad( _vertRect, _color); return(0); } if (gen_param_count == 4 && translator.Assignable <UnityEngine.Rect>(L, 2) && translator.Assignable <UnityEngine.Color32>(L, 3) && translator.Assignable <UnityEngine.Rect>(L, 4)) { UnityEngine.Rect _vertRect; translator.Get(L, 2, out _vertRect); UnityEngine.Color32 _color; translator.Get(L, 3, out _color); UnityEngine.Rect _uvRect; translator.Get(L, 4, out _uvRect); gen_to_be_invoked.AddQuad( _vertRect, _color, _uvRect); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.VertexBuffer.AddQuad!")); }
static int _g_get_triangles(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.VertexBuffer gen_to_be_invoked = (FairyGUI.VertexBuffer)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.triangles); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_currentVertCount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.VertexBuffer gen_to_be_invoked = (FairyGUI.VertexBuffer)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.currentVertCount); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_vertexColor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.VertexBuffer gen_to_be_invoked = (FairyGUI.VertexBuffer)translator.FastGetCSObj(L, 1); UnityEngine.Color32 gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.vertexColor = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _m_Begin_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { FairyGUI.VertexBuffer gen_ret = FairyGUI.VertexBuffer.Begin( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Clear(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.VertexBuffer gen_to_be_invoked = (FairyGUI.VertexBuffer)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Clear( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SliceFill(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.Image gen_to_be_invoked = (FairyGUI.Image)translator.FastGetCSObj(L, 1); { FairyGUI.VertexBuffer _vb = (FairyGUI.VertexBuffer)translator.GetObject(L, 2, typeof(FairyGUI.VertexBuffer)); gen_to_be_invoked.SliceFill(_vb); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }