mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-27 09:55:30 +00:00
0dd82e1485
Small example to show how the MouseCursor class can be used.
20 lines
991 B
Plaintext
20 lines
991 B
Plaintext
{\rtf1\ansi\deff0{\fonttbl{\f0\fswiss\fprq2\fcharset161{\*\fname Arial;}Arial Greek;}{\f1\fswiss\fprq2\fcharset0 Arial;}{\f2\fnil\fcharset0 Courier New;}}
|
||
{\colortbl ;\red163\green21\blue21;}
|
||
{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\nowidctlpar\cf1\lang1032\b\f0\fs28 Introduction\b0\fs22\par
|
||
\par
|
||
This sample \lang1033\f1 explains how to use the \lang1032\f0 MouseCursor\lang1033\f1 class. It creates a new GameWindow, and creates a MouseCursor from a custom image file.\par
|
||
\lang1032\f0\par
|
||
\b\fs28 Controls\par
|
||
\b0\fs22\par
|
||
Move or resize the window with your mouse.\par
|
||
\lang1033\f1 Press F11 to toggle between fullscreen and windowed modes.\par
|
||
Press Esc to exit.\lang1032\f0\par
|
||
\par
|
||
\b\fs28 Implementation\par
|
||
\b0\fs22\par
|
||
\lang1033\f1 This samples subclasses GameWindow and overrides its Load, Unload, Resize, UpdateFrame and RenderFrame events.\par
|
||
\par
|
||
The sample creates a MouseCursor by copying the data from a Bitmap loaded from a file.\cf0\f2\par
|
||
\pard\par
|
||
}
|
||
|