Introduction

This sample explains how to use the MouseCursor class. It creates a new GameWindow, and creates a MouseCursor from a custom image file.

Controls

Move or resize the window with your mouse.
Press F11 to toggle between fullscreen and windowed modes.
Press Esc to exit.

Implementation

This samples subclasses GameWindow and overrides its Load, Unload, Resize, UpdateFrame and RenderFrame events.

The sample creates a MouseCursor by copying the data from a Bitmap loaded from a file.