public virtual void UpdateDevice(GameContainer container) { DeviceContext = container.DeviceContext; Resource.UpdateDevice(container); BackBuffer?.Dispose(); BackBuffer = null; //BackBuffer = new Bitmap1(container.DeviceContext, container.D2D1BackBuffer.PixelSize); }
public Animation(GameContainer container) { Container = container; }
public static GameContainer UseKeyboardInputService(this GameContainer container) { container.GetService <KeyboardInputService>(); return(container); }
public static GameContainer UseMouseInputService(this GameContainer container) { container.GetService <MouseInputService>(); return(container); }