GLBasic forum

Main forum => GLBasic - en => Topic started by: quangdx on 2014-Dec-10

Title: CREATESCREEN and LOADFONT in Mac OSX clash.
Post by: quangdx on 2014-Dec-10
When using CREATESCREEN with USESCREEN along with LOADFONT "" and SETFONT commands,
it all looks great on a Windows PC, I can use a virtual screen and load in a font no problems.
But when running it on Mac OSX, the images use seem to clash, the loaded font image gets set to the background,
or if used in the opposite order, loading font first, then creating screen, the created screen becomes the used font file.

Anyone have any ideas?
Title: Re: CREATESCREEN and LOADFONT in Mac OSX clash.
Post by: spacefractal on 2014-Dec-10
its a known issue with virtual screen on mac. Im havent setup and relocated the compiler for mac yet. But not sure im can fix that one and its might up to Gernot.

The same issue seens to been on PANDORA as well.
Title: Re: CREATESCREEN and LOADFONT in Mac OSX clash.
Post by: erico on 2014-Dec-11
yep, it would be great if Gernot could fix those for us as a Christmas gift. ::)
Title: Re: CREATESCREEN and LOADFONT in Mac OSX clash.
Post by: quangdx on 2014-Dec-11
Quote from: spacefractal on 2014-Dec-10
its a known issue with virtual screen on mac. Im havent setup and relocated the compiler for mac yet. But not sure im can fix that one and its might up to Gernot.

The same issue seens to been on PANDORA as well.

Thanks for letting me know spacefractal,
I'll have to think of a different way of doing things then and till Gernot can sort this out.
Title: Re: CREATESCREEN and LOADFONT in Mac OSX clash.
Post by: spacefractal on 2014-Dec-11
Just scaling th graphics directly on backbuffer and you in the end get a much more speed than virtual screen.

The only real issue I'm have is missing vsync, which can property hopefully easy to fix that one.
Title: Re: CREATESCREEN and LOADFONT in Mac OSX clash.
Post by: quangdx on 2015-Jan-14
Quote from: spacefractal on 2014-Dec-11
Just scaling th graphics directly on backbuffer and you in the end get a much more speed than virtual screen.

The only real issue I'm have is missing vsync, which can property hopefully easy to fix that one.

Scaling directly to the backbuffer for each graphic command is fine for most things.
Except when using text with kerning, I've not worked out a way to do that.
Title: Re: CREATESCREEN and LOADFONT in Mac OSX clash.
Post by: spacefractal on 2015-Jan-14
I'm did a support for bmfont which support kernel and should scale nicely. I'm used that for spot race. The code is in snippets.

Also I'm fix the full path music bug after ski vacation, which I'm now have focus on. I'm home again end next week.
Title: Re: CREATESCREEN and LOADFONT in Mac OSX clash.
Post by: quangdx on 2015-Jan-14
Thank you very much Spacefractal,
I'll revisit my old scaling code and take a look at your font system.

http://www.glbasic.com/forum/index.php?topic=9981.0