Skip to main content
gamedev.net
🔒 Locked

C#+OGL+Font tutorial

Started by Ali_nz Aug 26, 2006 at 9:55 PM 0 replies 650+ views
Original Post
Ali_nz
Ali_nz
Hi Guys, I have been writing a little project that requires text. I have been using OGL and C#. I have been learning by mainly ripping code from NeHe's tutorials, but I notice that there is no sample code for C3 that relates to text in OGL. Does anyone have some base code for this? Cheers -Al
Rob Loach
Rob Loach
BooGame creates a textured font using System.Drawing and then makes an OpenGL texture out of it, and then renders from that texture onto the screen to allow TrueType font drawing. If you take a look at Font.cs, particularilly at the Load function, you'll see that it creates the System.Drawing.Image, and then loads it through as a texture.
Rob Loach [Website] [Projects] [

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.