smrendererv3/SMCode/SM.Base/Objects/Mesh.cs
Michel Fedde 9b917ac181 + comments to the SM.Base
+ Length, Normalize methods for CVectors
2020-12-19 20:49:16 +01:00

27 lines
No EOL
602 B
C#

#region usings
using OpenTK.Graphics.OpenGL4;
using SM.OGL.Mesh;
#endregion
namespace SM.Base.Objects
{
/// <inheritdoc />
public class Mesh : GenericMesh
{
/// <summary>
/// While initializing, it will add the <see cref="Color" /> to the data index.
/// </summary>
public Mesh(PrimitiveType type)
{
PrimitiveType = type;
Attributes.Add(3, "color", Color);
}
/// <summary>
/// Contains vertex colors
/// </summary>
public virtual VBO Color { get; protected set; }
}
}