Fidchells_eye's picture

QuickFont Dimming?

I 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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
OpenNB's picture

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

Fidchells_eye's picture

Thank you,
this helps a lot.