mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-27 11:25:32 +00:00
8dcb8601a2
Hopefully this is the first and last time we have to do this.
16 lines
808 B
Plaintext
16 lines
808 B
Plaintext
{\rtf1\ansi\ansicpg1253\deff0{\fonttbl{\f0\fnil\fcharset0 Arial;}}
|
||
{\colortbl ;\red163\green21\blue21;}
|
||
{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\cf1\lang1033\b\fs28 Introduction\b0\fs22\par
|
||
\par
|
||
This sample demonstrates an approach to 2d text rendering via System.Drawing (GDI+).\par
|
||
\par
|
||
You can copy the TextRenderer class to add support for text rendering to your project.\par
|
||
\par
|
||
The TextRenderer class uses System.Drawing to draw text into a System.Drawing.Bitmap. The contents of the Bitmap are uploaded to an OpenGL texture handle that can be bound and rendered to the OpenGL framebuffer. As an optimization, the OpenGL texture is refreshed lazily whenever it is bound for rendering.\par
|
||
\par
|
||
\b\fs28 Controls\par
|
||
\b0\fs22\par
|
||
Press Esc or click the close button to exit.\par
|
||
\par
|
||
}
|
||
|