GeometryBuilder.cs 969 B

12345678910111213141516171819202122232425
  1. using System;
  2. using Microsoft.Xna.Framework.Graphics;
  3. namespace MonoGame.Extended.Graphics.Geometry
  4. {
  5. [Obsolete("GeometryBuilder is part of an incomplete implementation that was never finished. It will be removed in a future major release.")]
  6. public abstract class GeometryBuilder<TVertexType, TIndexType>
  7. where TVertexType : struct, IVertexType
  8. where TIndexType : struct
  9. {
  10. public PrimitiveType PrimitiveType { get; protected set; }
  11. public int VertexCount { get; protected set; }
  12. public int IndexCount { get; protected set; }
  13. public int PrimitivesCount { get; protected set; }
  14. public TVertexType[] Vertices { get; }
  15. public TIndexType[] Indices { get; }
  16. protected GeometryBuilder(int maximumVerticesCount, int maximumIndicesCount)
  17. {
  18. Vertices = new TVertexType[maximumVerticesCount];
  19. Indices = new TIndexType[maximumIndicesCount];
  20. }
  21. }
  22. }