smrendererv3/SMCode/SM.Base/Objects/Mesh.cs
Michel Fedde 4efc47d75a 2021-03-07
+ IScriptable can now be disabled instancewise
+ IShowItem can disable rendering.

~ SM.Base.Mesh has now ILineMesh

- IGenericWindow.AspectRatioReverse
2021-03-07 12:30:54 +01:00

31 lines
No EOL
675 B
C#

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