Beispiel #1
0
        public virtual void UpdateDevice(GameContainer container)
        {
            DeviceContext = container.DeviceContext;
            Resource.UpdateDevice(container);

            BackBuffer?.Dispose();
            BackBuffer = null;
            //BackBuffer = new Bitmap1(container.DeviceContext, container.D2D1BackBuffer.PixelSize);
        }
Beispiel #2
0
 public Animation(GameContainer container)
 {
     Container = container;
 }
Beispiel #3
0
 public static GameContainer UseKeyboardInputService(this GameContainer container)
 {
     container.GetService <KeyboardInputService>();
     return(container);
 }
Beispiel #4
0
 public static GameContainer UseMouseInputService(this GameContainer container)
 {
     container.GetService <MouseInputService>();
     return(container);
 }