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