|
From: <ll...@ga...> - 2003-04-08 23:12:01
|
Thanks, Ben, I will add this. BTW, I learn a bit of Emit and I hope to come out soon with a very clean solution for extension ... On Wednesday, April 9, 2003, at 01:38 AM, Ben Houston wrote: > I am sharing this information in the hopes that it can be included in a > future version of CsGL. > > > Here are the two files that make up my version of the GLOutlineFont > > http://www.exocortex.org/csgl/GLOutlineFont.cs > http://www.exocortex.org/csgl/Win32Native.cs > > I make use of the GLOutlineFont class in the following way: > > (1) Inside InitGLContext I do the following: > > _glFont = new GLOutlineFont( this.Context, new Font( "Arial", 15 ) ); > _glFont.Init( Win32Native.GetDC( this.Handle ) ); > > (2) Then to use this class to write a font to the screen I do the > following inside the Paint() function: > > _glFont.DrawString( "my String" ); > > Hope that helps. > -ben houston > http://www.exocortex.org/ben > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Csgl-users mailing list > Csg...@li... > https://lists.sourceforge.net/lists/listinfo/csgl-users > |