01.10.2020
+ Time controls (Stopwatch, Timers, Intervals) + Added smmeries to everything in SM.Base ~ Renamed Vectors to CVectors.
This commit is contained in:
parent
7acdba92f8
commit
97e638d9d9
44 changed files with 1092 additions and 289 deletions
|
|
@ -2,10 +2,17 @@
|
|||
|
||||
namespace SM.Base.Objects
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public class Mesh : GenericMesh
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains vertex colors
|
||||
/// </summary>
|
||||
public virtual VBO Color { get; }
|
||||
|
||||
/// <summary>
|
||||
/// While initializing, it will add the <see cref="Color"/> to the data index.
|
||||
/// </summary>
|
||||
protected Mesh()
|
||||
{
|
||||
AttribDataIndex.Add(3, Color);
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ namespace SM.Base.Objects.Static
|
|||
/// </summary>
|
||||
public static Plate Object = new Plate();
|
||||
|
||||
/// <inheritdoc />
|
||||
public override VBO Vertex { get; } = new VBO()
|
||||
{
|
||||
{-.5f, -.5f, 0},
|
||||
|
|
@ -23,6 +24,7 @@ namespace SM.Base.Objects.Static
|
|||
{.5f, -.5f, 0},
|
||||
};
|
||||
|
||||
/// <inheritdoc />
|
||||
public override VBO UVs { get; } = new VBO(pointerSize: 2)
|
||||
{
|
||||
{0, 0},
|
||||
|
|
@ -31,8 +33,10 @@ namespace SM.Base.Objects.Static
|
|||
{1, 0},
|
||||
};
|
||||
|
||||
/// <inheritdoc />
|
||||
public override PrimitiveType PrimitiveType { get; } = PrimitiveType.Quads;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override BoundingBox BoundingBox { get; } = new BoundingBox(new Vector3(-.5f, -.5f, 0), new Vector3(.5f, .5f, 0));
|
||||
|
||||
//public override int[] Indices { get; set; } = new[] {0, 1, 2, 3};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue