[.net] Bitmap Fonts
How can I display OpenGL bitmap fonts when using Tao C#. Looking at the NeHe Tuts, they use the SelectObject function to associate the font with the device context, what would be the C# equivelant?
Well, if you want to do it the way shown in the tutorial, you will need to add the pinvoke methods to your class, see: PInvoke. You can use the System.Drawing.Font class to create the font, then call the ToHfont method. The IntPtr returned from that can be passed to SelectObject, and from there to your wgl call.
On that note, i'm trying to get onto tha Tao site, but it's not letting me, so I can't tell you how to do it using the Tao framework. As soon as i can access said site, I will give you an answer :P
On that note, i'm trying to get onto tha Tao site, but it's not letting me, so I can't tell you how to do it using the Tao framework. As soon as i can access said site, I will give you an answer :P
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement