Reworked the VBO

This commit is contained in:
Michel Fedde 2021-03-26 10:41:29 +01:00
parent 3bc90dd83b
commit ee732240f7
11 changed files with 174 additions and 253 deletions

View file

@ -1,5 +1,6 @@
#region usings
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL4;
using SM.OGL.Mesh;
@ -27,18 +28,18 @@ namespace SM.Base.Objects.Static
}
/// <inheritdoc />
public override VBO Vertex { get; protected set; } = new VBO
public override VBO<Vector3> Vertex { get; protected set; } = new VBO<Vector3>
{
{0, 0, 0},
{.5f, 0, 0},
{0, 0, 0},
{0, .5f, 0},
{0, 0, -.5f},
{0, 0, .5f}
new Vector3(0, 0, 0),
new Vector3(.5f, 0, 0),
new Vector3(0, 0, 0),
new Vector3(0, .5f, 0),
new Vector3(0, 0, -.5f),
new Vector3(0, 0, .5f)
};
/// <inheritdoc />
public override VBO Color { get; protected set; } = new VBO(pointerSize: 4)
public override VBO<Color4> Color { get; protected set; } = new VBO<Color4>
{
Color4.White,
Color4.Red,