Esempio n. 1
0
 public static void SaveState(string key, GraphicsDeviceState state)
 {
     if (GraphicsDeviceStates.ContainsKey(key))
     {
         GraphicsDeviceStates[key] = state;
     }
     else
     {
         GraphicsDeviceStates.Add(key, state);
     }
 }
Esempio n. 2
0
 public static void SetStatesToDefault(this GraphicsDevice d)
 {
     GraphicsDeviceState.SetGraphicsDeviceToDefaultStates(d);
 }
Esempio n. 3
0
 public static void SetDefaultState(GraphicsDeviceState defaultState)
 {
     defaultState_ = defaultState;
 }
Esempio n. 4
0
 // graphics device states
 public static void SetStates(this GraphicsDevice d, GraphicsDeviceState state)
 {
     state.SetGraphicsDeviceToStates(d);
 }