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
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue