+ Time controls (Stopwatch, Timers, Intervals) + Added smmeries to everything in SM.Base ~ Renamed Vectors to CVectors.
46 lines
No EOL
1.1 KiB
C#
46 lines
No EOL
1.1 KiB
C#
using OpenTK;
|
|
using OpenTK.Graphics;
|
|
using OpenTK.Graphics.OpenGL4;
|
|
using SM.OGL.Mesh;
|
|
|
|
namespace SM.Base.Objects.Static
|
|
{
|
|
/// <summary>
|
|
/// A basic plate
|
|
/// </summary>
|
|
public class Plate : GenericMesh
|
|
{
|
|
/// <summary>
|
|
/// The object.
|
|
/// </summary>
|
|
public static Plate Object = new Plate();
|
|
|
|
/// <inheritdoc />
|
|
public override VBO Vertex { get; } = new VBO()
|
|
{
|
|
{-.5f, -.5f, 0},
|
|
{-.5f, .5f, 0},
|
|
{.5f, .5f, 0},
|
|
{.5f, -.5f, 0},
|
|
};
|
|
|
|
/// <inheritdoc />
|
|
public override VBO UVs { get; } = new VBO(pointerSize: 2)
|
|
{
|
|
{0, 0},
|
|
{0, 1},
|
|
{1, 1},
|
|
{1, 0},
|
|
};
|
|
|
|
/// <inheritdoc />
|
|
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Quads;
|
|
|
|
/// <inheritdoc />
|
|
public override BoundingBox BoundingBox { get; } = new BoundingBox(new Vector3(-.5f, -.5f, 0), new Vector3(.5f, .5f, 0));
|
|
|
|
//public override int[] Indices { get; set; } = new[] {0, 1, 2, 3};
|
|
|
|
private Plate() {}
|
|
}
|
|
} |