Added missing summeries #1
This commit is contained in:
parent
03d99ea28e
commit
8665b5b709
104 changed files with 1165 additions and 821 deletions
|
|
@ -1,15 +1,19 @@
|
|||
using OpenTK.Graphics;
|
||||
#region usings
|
||||
|
||||
using OpenTK.Graphics;
|
||||
using OpenTK.Graphics.OpenGL4;
|
||||
using SM.OGL.Mesh;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace SM.Base.Objects.Static
|
||||
{
|
||||
/// <summary>
|
||||
/// An AxisHelper-Model
|
||||
/// <para>White: -X, -Y, -Z</para>
|
||||
/// <para>Red: +X </para>
|
||||
/// <para>Green: +Y </para>
|
||||
/// <para>Blue: +Z </para>
|
||||
/// <para>White: -X, -Y, -Z</para>
|
||||
/// <para>Red: +X </para>
|
||||
/// <para>Green: +Y </para>
|
||||
/// <para>Blue: +Z </para>
|
||||
/// </summary>
|
||||
public class AxisHelper : Mesh
|
||||
{
|
||||
|
|
@ -18,28 +22,30 @@ namespace SM.Base.Objects.Static
|
|||
/// </summary>
|
||||
public static AxisHelper Object = new AxisHelper();
|
||||
|
||||
private AxisHelper() : base(PrimitiveType.Lines) {}
|
||||
private AxisHelper() : base(PrimitiveType.Lines)
|
||||
{
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override VBO Vertex { get; protected set; } = new VBO()
|
||||
public override VBO Vertex { get; protected set; } = new VBO
|
||||
{
|
||||
{0, 0, 0},
|
||||
{.5f, 0, 0},
|
||||
{0, 0, 0},
|
||||
{0, .5f, 0},
|
||||
{0, 0, -.5f},
|
||||
{0, 0, .5f},
|
||||
{0, 0, .5f}
|
||||
};
|
||||
|
||||
/// <inheritdoc />
|
||||
public override VBO Color { get; protected set; } = new VBO(pointerSize:4)
|
||||
public override VBO Color { get; protected set; } = new VBO(pointerSize: 4)
|
||||
{
|
||||
{Color4.White},
|
||||
{Color4.Red},
|
||||
{Color4.White},
|
||||
{Color4.Green},
|
||||
{Color4.White},
|
||||
{Color4.DarkBlue},
|
||||
Color4.White,
|
||||
Color4.Red,
|
||||
Color4.White,
|
||||
Color4.Green,
|
||||
Color4.White,
|
||||
Color4.DarkBlue
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue