34 lines
No EOL
735 B
C#
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() {}
|
|
}
|
|
} |