Esempio n. 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();
        }
Esempio n. 2
0
 protected Element(GameBase game)
 {
     Game = game;
 }
Esempio n. 3
0
 protected RendererBase(GameBase game)
 {
     Game = game;
 }