Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GfxLib qustions
#1
I have few questions about gfxlib

1 - Can I load bmp directly to specified location on the screen?

2 - Can I set default mask color -color that gets filtered out?

3 - Is it possible to set color transperency level?

4 - Put has several options, can I mix for example TRANS and PSET options?

tnx in advance
url]http://fbide.sourceforge.net/[/url]
Reply
#2
Quote:4 - Put has several options, can I mix for example TRANS and PSET options?
Why not?
Reply
#3
Quote:1 - Can I load bmp directly to specified location on the screen?
Nope, BMPs are always loaded at 0,0; to display at a different position, load onto a GET/PUT buffer and PUT it wherever you want on the screen.
Quote:2 - Can I set default mask color -color that gets filtered out?
Nope. Always color index 0 for paletted modes and bright pink (RGB 255,0,255) for hi/truecolor modes. The mask color is hardcoded for speed reasons, but if there's enough need for such a customization I may add it...
Quote:3 - Is it possible to set color transperency level?
What do you mean? Transpacency or translucency? The former allows to mask out pixels depending on their color value and a "level" makes no sense for it; the latter allows to blend source and destination pixel colors according to a translucency level, and is usually used for alpha blending.
Quote:4 - Put has several options, can I mix for example TRANS and PSET options?
These you mention are two different PUT modes, the first draws all sprite pixels except those using the mask color, which are skipped. The last draws all pixels in any case. Mixing the two makes little sense... You can only specify a PUT mode at a time.
ngelo Mottola - EC++
Reply
#4
Sry yes I meant translucency.

I would be cool if you would add defult mask color option.
url]http://fbide.sourceforge.net/[/url]
Reply
#5
I'd rather keep 0 for 8 bit and pink for hi/true-colour modes. It's faster and it's not a big deal. Why would you want color 147 as a transparent colour?
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#6
If you meant translucency, the answer to question 3 is no. Translucency is out of scope for the built-in gfxlib; this is left out to 3rd party add-ons to be implemented. MMX would be handy here for anyone willing to get the task Smile
ngelo Mottola - EC++
Reply
#7
Hm, I made the experience in QB that in Screen 13 the colour 255 is always white/can't be changed on some systems.
So I always use this as my filter-colour - at my current project I'd have to change 4145 Bitmaps Undecided
he dogs bark, but the caravan keeps moving.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)