#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 { {-.5f, -.5f, 0}, {-.5f, .5f, 0}, {.5f, .5f, 0}, {.5f, -.5f, 0} }; /// public override VBO UVs { get; protected set; } = new VBO(pointerSize: 2) { {0, 1}, {0, 0}, {1, 0}, {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)); } }