示例#1
0
 public static void SaveState(string key, GraphicsDeviceState state)
 {
     if (GraphicsDeviceStates.ContainsKey(key))
     {
         GraphicsDeviceStates[key] = state;
     }
     else
     {
         GraphicsDeviceStates.Add(key, state);
     }
 }
示例#2
0
文件: Misc.cs 项目: Alan-FGR/aelum
 public static void SetStatesToDefault(this GraphicsDevice d)
 {
     GraphicsDeviceState.SetGraphicsDeviceToDefaultStates(d);
 }
示例#3
0
文件: Misc.cs 项目: Alan-FGR/aelum
 public static void SetDefaultState(GraphicsDeviceState defaultState)
 {
     defaultState_ = defaultState;
 }
示例#4
0
文件: Misc.cs 项目: Alan-FGR/aelum
 // graphics device states
 public static void SetStates(this GraphicsDevice d, GraphicsDeviceState state)
 {
     state.SetGraphicsDeviceToStates(d);
 }