Beispiel #1
0
        public GameWindow(GameBase game)
        {
            Game = game;

            SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.DoubleBuffer | ControlStyles.Opaque | ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer, false);

            FormBorderStyle = FormBorderStyle.FixedSingle;
            MaximizeBox     = false;
            KeyPreview      = true;

            CheckForIllegalCrossThreadCalls = false;

            InitializeComponent();
        }
Beispiel #2
0
 protected Element(GameBase game)
 {
     Game = game;
 }
 protected RendererBase(GameBase game)
 {
     Game = game;
 }