Loads and loads of small improvements I added while developing on my game
This commit is contained in:
parent
41421b1df9
commit
a7c71e7ea1
107 changed files with 2278 additions and 1023 deletions
13
SMCode/SM.Base/Drawing/ShaderArguments.cs
Normal file
13
SMCode/SM.Base/Drawing/ShaderArguments.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SM.Base.Drawing
|
||||
{
|
||||
public class ShaderArguments : Dictionary<string, object>
|
||||
{
|
||||
public TType Get<TType>(string name, TType defaultValue = default)
|
||||
{
|
||||
return ContainsKey(name) ? (TType)this[name] : defaultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue