示例#1
0
        protected void AddQuad(IntPtr v1, IntPtr v2, IntPtr v3, IntPtr v4, uint structSize, ResourceHandle <Material> materialHandle)
        {
            var batchInfo = GetCreateBatchInfo(materialHandle);

            batchInfo.Ranges.Add((int)gb.NumVertices);

            gb.Add(v1, structSize);
            gb.Add(v2, structSize);
            gb.Add(v3, structSize);
            gb.Add(v4, structSize);
        }