#region usings using OpenTK; using OpenTK.Graphics.OpenGL4; using SM.OGL.Mesh; #endregion namespace SM.Base.Objects.Static { /// /// A basic plate /// public class Plate : GenericMesh { /// /// The object. /// public static Plate Object = new Plate(); //public override int[] Indices { get; set; } = new[] {0, 1, 2, 3}; private Plate() { } /// public override VBO Vertex { get; protected set; } = new VBO { new Vector3(-.5f, -.5f, 0), new Vector3(-.5f, .5f, 0), new Vector3(.5f, .5f, 0), new Vector3(.5f, -.5f, 0), }; /// public override VBO UVs { get; protected set; } = new VBO { new Vector2(0, 1), new Vector2(0, 0), new Vector2(1, 0), new Vector2(1, 1), }; /// public override PrimitiveType PrimitiveType { get; protected set; } = PrimitiveType.Quads; /// public override BoundingBox BoundingBox { get; } = new BoundingBox(new Vector3(-.5f, -.5f, 0), new Vector3(.5f, .5f, 0)); } }