   [.net] Loading font for OpenGL
  I need to load a font and render text using OpenGL.(I'm using TAO libarary if it makes any difference)Basically what I need is just to convert the following function from C++ to C#This function from NeHe's OpenGL tutorialson how to do the thing in C++ and WinAPI:GLvoid BuildFont(GLvoid){ HFONTfont, oldfont; base = glGenLists(96); font = CreateFont(*params cut out*); oldfont = (HFONT)SelectObject(hDC, font); // Selects The Font We Want wglUseFontBitmaps(hDC, 32, 96, base); // Builds 96 Characters Starting At Character 32 SelectObject(hDC, oldfont); // Selects The Font We Want DeleteObject(font); // Delete The Font}// Now the C# conversion I'm working on:void BuildFont(){ int listID = Gl.glGenLists(96); // Create the font System.Drawing.Font font = new System.Drawing.Font("Arial", 22); // *what to do now?* Tao.Platform.Windows.Wgl.wglUseFontBitmaps(*?*, 32, 96, listID); // *and again*}   
SDL.NET to the rescue.  If you take a look at SDL.NET's NeHe 13's source code, you'll see that you use the hDC generated from User.GetDC(Video.WindowHandle); .  Good luck figuring it out!   ;  You can also look at the examples in the Tao source repository.  The link you want for this particular lesson is here.  Note that this is the non-SDL route.HTH!   