mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-27 10:05:32 +00:00
8dcb8601a2
Hopefully this is the first and last time we have to do this.
21 lines
1.4 KiB
Plaintext
21 lines
1.4 KiB
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 render graphics with multisample antialiasing. It uses the same code as the simple GameWindow sample, so refer to that for an explanation on the various event handlers.\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
|
||
\pard\lang1033\f1 The GameWindow offers various constructors that allow you to specify the exact GraphicsMode for the constructed GraphicsContext. The "samples" parameter represents the level of antialiasing you wish to use.\par
|
||
\par
|
||
In order to enable multisample antialiasing, simply pass a positive integer to the samples parameter. Typical values are 2, 4, 6, 8 and 16, but the exact list depends on the capabilities of your video card.\par
|
||
\par
|
||
If you pass an unsupported value, context construction may fail with a GraphicsModeException. However, some drivers may simply ignore unsupported samples values.\cf0\f2\par
|
||
}
|
||
|