CREATESCREEN and LOADFONT in Mac OSX clash.

Previous topic - Next topic

quangdx

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?
Asobi tech - the science of play.
Spare time indiegame developer.

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

erico

yep, it would be great if Gernot could fix those for us as a Christmas gift. ::)

quangdx

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.
Asobi tech - the science of play.
Spare time indiegame developer.

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

quangdx

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.
Asobi tech - the science of play.
Spare time indiegame developer.

spacefractal

#6
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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

quangdx

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

Asobi tech - the science of play.
Spare time indiegame developer.