TexOut() not supported with GL Galore?

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

TexOut() not supported with GL Galore?

Post by jalih » Sat Jun 20, 2015 9:37 am

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: 2670
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: TexOut() not supported with GL Galore?

Post by airsoftsoftwair » Sun Jun 21, 2015 5:59 pm

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: 245
Joined: Fri Jun 18, 2010 8:08 pm
Location: Finland

Re: TexOut() not supported with GL Galore?

Post by jalih » Mon Jun 22, 2015 8:02 am

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: 2670
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: TexOut() not supported with GL Galore?

Post by airsoftsoftwair » Fri Jun 26, 2015 5:07 pm

Ok, so this was a bug in Hollywood's plugin interface, not in GL Galore. Fixed now.

jalih
Posts: 245
Joined: Fri Jun 18, 2010 8:08 pm
Location: Finland

Re: TexOut() not supported with GL Galore?

Post by jalih » Sat Jun 27, 2015 9:11 pm

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

Post Reply