public MainWindow(GameContext gameContext) { _gameContext = gameContext; InitializeComponent(); Size = MainWindowSize; FormBorderStyle= FormBorderStyle.FixedSingle; BackgroundColor=new Vector3(0,0,0); }
static void Main(string[] args) { disableConsoleClosing(); GameContext context=new GameContext(); CommandListener listener=new CommandListener(context); MessagePump.Run(context.MainWindow,context.Render); listener.Dispose(); context.Dispose(); }
public ControlForm(GameContext context) { _context = context; InitializeComponent(); }