Ejemplo n.º 1
0
        public PackedPrimitiveBuilder <TMaterial> AddPrimitive(TMaterial material, int primitiveVertexCount)
        {
            var p = new PackedPrimitiveBuilder <TMaterial>(material, primitiveVertexCount);

            _Primitives.Add(p);

            return(p);
        }
Ejemplo n.º 2
0
        public void AddPrimitive(TMaterial material, Memory.MemoryAccessor[] vrtAccessors, Memory.MemoryAccessor idxAccessor)
        {
            var p = new PackedPrimitiveBuilder <TMaterial>(material, vrtAccessors, idxAccessor);

            _Primitives.Add(p);
        }
Ejemplo n.º 3
0
 public static void MergeBuffers(IEnumerable <PackedMeshBuilder <TMaterial> > meshes)
 {
     PackedPrimitiveBuilder <TMaterial> .MergeBuffers(meshes.SelectMany(m => m._Primitives));
 }