protected override void OnLoad(EventArgs e) { Shaders.Load(); MSAABuffer = new MsaaFbo(); var renderer = new Gwen.Renderer.OpenTK(); var skinpng = renderer.CreateTexture(GameResources.DefaultSkin); var fontpng = renderer.CreateTexture(GameResources.liberation_sans_15_png); var fontpngbold = renderer.CreateTexture(GameResources.liberation_sans_15_bold_png); var gamefont_15 = new Gwen.Renderer.BitmapFont( renderer, GameResources.liberation_sans_15_fnt, fontpng); var gamefont_15_bold = new Gwen.Renderer.BitmapFont( renderer, GameResources.liberation_sans_15_bold_fnt, fontpngbold); var skin = new Gwen.Skin.TexturedBase(renderer, skinpng, GameResources.DefaultColors ) { DefaultFont = gamefont_15 }; Fonts f = new Fonts(gamefont_15, gamefont_15_bold); Canvas = new GameCanvas(skin, this, renderer, f); _input = new Gwen.Input.OpenTK(this); _input.Initialize(Canvas); Canvas.ShouldDrawBackground = false; try { Models.LoadModels(Settings.SelectedBoshSkin); } catch { Models.LoadModels(); } Track.UpdateScarf(Settings.SelectedScarf); Constants.ColorAccelerationLine = Color.FromArgb(255, Settings.AccelerationLineColorRed, Settings.AccelerationLineColorGreen, Settings.AccelerationLineColorBlue); Constants.ColorSceneryLine = Color.FromArgb(255, Settings.SceneryLineColorRed, Settings.SceneryLineColorGreen, Settings.SceneryLineColorBlue); Constants.ColorDefaultLine = Color.FromArgb(255, Settings.LineColorRed, Settings.LineColorGreen, Settings.LineColorBlue); Constants.BlueLineColored = Color.FromArgb(255, Settings.NormalColorRed, Settings.NormalColorGreen, Settings.NormalColorBlue); Constants.RedLineColored = Color.FromArgb(255, Settings.AccelerationColorRed, Settings.AccelerationColorGreen, Settings.AccelerationColorBlue); Constants.SceneryLineColored = Color.FromArgb(255, Settings.SceneryColorRed, Settings.SceneryColorGreen, Settings.SceneryColorBlue); AddCursor("pencil", GameResources.cursor_pencil, 6, 25); AddCursor("line", GameResources.cursor_line, 11, 11); AddCursor("eraser", GameResources.cursor_eraser, 8, 8); AddCursor("hand", GameResources.cursor_move, 16, 16); AddCursor("hand_point", GameResources.cursor_hand, 14, 8); AddCursor("closed_hand", GameResources.cursor_dragging, 16, 16); AddCursor("adjustline", GameResources.cursor_select, 4, 4); AddCursor("size_nesw", GameResources.cursor_size_nesw, 16, 16); AddCursor("size_nwse", GameResources.cursor_size_nwse, 16, 16); AddCursor("size_hor", GameResources.cursor_size_horz, 16, 16); AddCursor("size_ver", GameResources.cursor_size_vert, 16, 16); AddCursor("size_all", GameResources.cursor_size_all, 16, 16); AddCursor("default", GameResources.cursor_default, 7, 4); AddCursor("zoom", GameResources.cursor_zoom_in, 11, 10); AddCursor("ibeam", GameResources.cursor_ibeam, 11, 11); Program.UpdateCheck(); Track.AutoLoadPrevious(); linerider.Tools.CurrentTools.Init(); }