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(); }
protected Element(GameBase game) { Game = game; }
protected RendererBase(GameBase game) { Game = game; }