TexOut() not supported with GL Galore?

Discuss OpenGL® programming with the GL Galore plugin here

TexOut() not supported with GL Galore?

Postby 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.
jalih
 
Posts: 244
Joined: Fri Jun 18, 2010 8:08 pm
Location: Finland

Re: TexOut() not supported with GL Galore?

Postby 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.
User avatar
airsoftsoftwair
 
Posts: 2233
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: TexOut() not supported with GL Galore?

Postby 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.
jalih
 
Posts: 244
Joined: Fri Jun 18, 2010 8:08 pm
Location: Finland

Re: TexOut() not supported with GL Galore?

Postby 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.
User avatar
airsoftsoftwair
 
Posts: 2233
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: TexOut() not supported with GL Galore?

Postby jalih » Sat Jun 27, 2015 9:11 pm

I added initial support for AngelCode.com Bitmap Font Generator output files into my framework.
jalih
 
Posts: 244
Joined: Fri Jun 18, 2010 8:08 pm
Location: Finland


Return to GL Galore

Who is online

Users browsing this forum: No registered users and 1 guest

cron