01.10.2020

+ Time controls (Stopwatch, Timers, Intervals)
+ Added smmeries to everything in SM.Base

~ Renamed Vectors to CVectors.
This commit is contained in:
Michel Fedde 2020-10-01 15:39:03 +02:00
parent 7acdba92f8
commit 97e638d9d9
44 changed files with 1092 additions and 289 deletions

View file

@ -47,6 +47,22 @@ namespace SM.OGL
}
/// <summary>
/// Is triggered, when something want to dispose this object.
/// </summary>
protected virtual void Dispose() {}
/// <summary>
/// Re-compiles the object.
/// </summary>
public void Recompile()
{
if (!WasCompiled) return;
Dispose();
Compile();
}
/// <summary>
/// Names the object for debugging.
/// </summary>

View file

@ -15,11 +15,23 @@ namespace SM.OGL.Texture
/// <summary>
/// The texture filter.
/// <para>Default: <see cref="TextureMinFilter.Linear"/></para>
/// </summary>
public abstract TextureMinFilter Filter { get; set; }
public virtual TextureMinFilter Filter { get; set; } = TextureMinFilter.Linear;
/// <summary>
/// The wrap mode.
/// <para>Default: <see cref="TextureWrapMode.Repeat"/></para>
/// </summary>
public abstract TextureWrapMode WrapMode { get; set; }
public virtual TextureWrapMode WrapMode { get; set; } = TextureWrapMode.Repeat;
/// <summary>
/// The Width of the texture
/// </summary>
public int Width { get; protected set; }
/// <summary>
/// The height of the texture
/// </summary>
public int Height { get; protected set; }
}
}