Opentk/Source/Examples/OpenGL/1.x/TextRendering.rtf

16 lines
808 B
Plaintext
Raw Normal View History

{\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
}
2011-01-18 11:15:49 +00:00