smrendererv3/SMCode/SM.Base/StaticObjects/Plate.cs
Michel Fedde a603ecc417 18.09.2020
+ Textures
~ Changed 2D coordnate system to lower right as XY+
2020-09-19 15:04:04 +02:00

34 lines
No EOL
735 B
C#

using OpenTK.Graphics.OpenGL4;
using SM.OGL.Mesh;
namespace SM.Base.StaticObjects
{
public class Plate : Mesh
{
public static Plate Object = new Plate();
public override VBO Vertex { get; } = new VBO()
{
{-.5f, -.5f, 0},
{-.5f, .5f, 0},
{.5f, .5f, 0},
{.5f, -.5f, 0},
{0,0,0},
{0,0,0},
};
public override VBO UVs { get; } = new VBO(pointerSize: 2)
{
{0, 0},
{0, 1},
{1, 1},
{1, 0},
{0, 0},
{0, 0},
};
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Quads;
private Plate() {}
}
}