
QuickFont Dimming?
Posted Friday, 11 November, 2011 - 20:12 by Fidchells_eye inI am making an instrument using OpenTK and got everything in, but text in the render.
But when I add QuickFont, The entire rendering is Dimmed.
What Do I need to do to correct this
Quick Code Dump
Render()
{
render stuff
font = new Font("Times New Roman", 8);
rendOpt = new QFontRenderOptions();
qf = new QFont(font);
QFont.Begin();
qf.Print("Testing",new RectangleF(0.0f,0.0f,10.0f,2.0f),QFontAlignment.Left);
QFont.End();
GlControl.SwapBuffers();
}


Comments
Re: QuickFont Dimming?
I had the same query, you can see the solution here -
http://www.opentk.com/node/2761
You need to add the statement
GL.Disable(EnableCap.Texture2D);
after the
QFont.End();
or before the
render stuff
Re: QuickFont Dimming?
Thank you,
this helps a lot.