Introduction

This sample demonstrates an approach to 2d text rendering via System.Drawing (GDI+).

You can copy the TextRenderer class to add support for text rendering to your project.

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.

Controls

Press Esc or click the close button to exit.