public MainWindow()
     : base(
         1280,
         720,
         new GraphicsMode(new ColorFormat(24), 0, 0, 0, ColorFormat.Empty),
         "Line Rider: Advanced",
         GameWindowFlags.Default,
         DisplayDevice.Default,
         2,
         0,
         GraphicsContextFlags.Default)
 {
     SafeFrameBuffer.Initialize();
     PencilTool            = new PencilTool();
     LineTool              = new LineTool();
     EraserTool            = new EraserTool();
     HandTool              = new HandTool();
     MoveTool              = new MoveTool();
     SelectedTool          = PencilTool;
     Track                 = new Editor();
     VSync                 = VSyncMode.On;
     Context.ErrorChecking = false;
     WindowBorder          = WindowBorder.Resizable;
     RenderFrame          += (o, e) => { Render(); };
     UpdateFrame          += (o, e) => { GameUpdate(); };
     GameService.Initialize(this);
     RegisterHotkeys();
 }
示例#2
0
        public GLWindow()
            : base(1280, 720, new GraphicsMode(new ColorFormat(32), 0, 8, 0, ColorFormat.Empty),
                   "Line Rider: Advanced", GameWindowFlags.Default, DisplayDevice.Default)
        {
            if (_instance != null)
            {
                throw new InvalidOperationException();
            }

            SafeFrameBuffer.Initialize();
            _instance = this;
            StaticRenderer.InitializeCircles();
            _penciltool           = new PencilTool();
            _linetool             = new LineTool();
            _erasertool           = new EraserTool();
            _handtool             = new HandTool();
            _lineadjusttool       = new LineAdjustTool();
            SelectedTool          = _penciltool;
            Track                 = new GLTrack();
            VSync                 = VSyncMode.Off;
            Context.ErrorChecking = true;
            WindowBorder          = WindowBorder.Resizable;
            RenderFrame          += (o, e) => { Render(); };
            UpdateFrame          += (o, e) => { GameUpdate(); };
            GameService.Initialize(this);
        }