TexOut() not supported with GL Galore?

Discuss OpenGL® programming with the GL Galore plugin here
Post Reply
jalih
Posts: 276
Joined: Fri Jun 18, 2010 8:08 pm
Location: Finland

TexOut() not supported with GL Galore?

Post by jalih »

I have been adding GL Galore support for my platformer and noticed TextOut() call kills the program.

Otherwise, I am liking it and get constant nice frame rate with my program.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: TexOut() not supported with GL Galore?

Post by airsoftsoftwair »

Right, this is a bug. It shouldn't crash. I'll fix this. However, generally speaking, using TextOut() with GL Galore is not a good idea because TextOut() doesn't make use of hardware acceleration so it will slow down your drawing. A better idea would be to store the characters you need in a hardware brush and then do the text drawing yourself.
jalih
Posts: 276
Joined: Fri Jun 18, 2010 8:08 pm
Location: Finland

Re: TexOut() not supported with GL Galore?

Post by jalih »

airsoftsoftwair wrote:A better idea would be to store the characters you need in a hardware brush and then do the text drawing yourself.
Yep, I will add support for some popular bitmap font generator output format into my framework.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: TexOut() not supported with GL Galore?

Post by airsoftsoftwair »

Ok, so this was a bug in Hollywood's plugin interface, not in GL Galore. Fixed now.
jalih
Posts: 276
Joined: Fri Jun 18, 2010 8:08 pm
Location: Finland

Re: TexOut() not supported with GL Galore?

Post by jalih »

I added initial support for AngelCode.com Bitmap Font Generator output files into my framework.
Post Reply