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