Exemple #1
0
        public VertexElement()
        {
            this.Vertices = VertexListPool <Vector3> .Alloc();

            this.UVs = VertexListPool <Vector2> .Alloc();

            this.Colors = VertexListPool <Color32> .Alloc();

            this.Indices = VertexListPool <int> .Alloc();
        }
Exemple #2
0
        public void Free()
        {
            VertexListPool <Vector3> .Free(this.Vertices);

            VertexListPool <Color32> .Free(this.Colors);

            VertexListPool <Vector2> .Free(this.UVs);

            VertexListPool <int> .Free(this.Indices);

            this.Vertices = null;
            this.Colors   = null;
            this.UVs      = null;
            this.Indices  = null;
        }