示例#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();
        }
示例#2
0
 protected Element(GameBase game)
 {
     Game = game;
 }
示例#3
0
 protected RendererBase(GameBase game)
 {
     Game = game;
 }