Esempio n. 1
0
        protected override void OnLoad(EventArgs e)
        {
            MSAABuffer = new MsaaFbo();
            Canvas     = GameCanvas.CreateCanvas(this);
            _input     = new Gwen.Input.OpenTK(this);
            _input.Initialize(Canvas);
            Canvas.ShouldDrawBackground = false;
            InitControls();
            Models.LoadModels();

            AddCursor("pencil", GameResources.pencil_icon, 3, 28);
            AddCursor("line", GameResources.line_cursor, 5, 5);
            AddCursor("eraser", GameResources.eraser_cursor, 5, 5);
            AddCursor("hand", GameResources.move_icon, 16, 16);
            AddCursor("closed_hand", GameResources.closed_move_icon, 16, 16);
            AddCursor("adjustline", GameResources.cursor_adjustline, 0, 0);
            Canvas.UpdateSaveNodes();
        }