Opentk/Source/Examples/OpenGL/1.x/TextRendering.rtf
2011-01-18 11:15:49 +00:00

16 lines
823 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{\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
}