GLBasic forum

Main forum => GLBasic - en => Topic started by: msx on 2011-Nov-11

Title: Transparency in virtual screen
Post by: msx on 2011-Nov-11
How do I make a transparency in a virtual screen so that when placed on other virtual screen you can see both screens?

I do not know if you understand me  O_O
Title: Re: Transparency in virtual screen
Post by: Ian Price on 2011-Nov-11
The virtual screen is already transparent isn't it?

If not, use -
Code (glbasic) Select

DRAWRECT 0,0,width,height,(RGB(255,0,128)

then draw your virtual stuff over the top.
Title: Re: Transparency in virtual screen
Post by: Albert on 2011-Nov-11
No alpha, only colorkey transparency.
Title: Re: Transparency in virtual screen
Post by: Kitty Hello on 2011-Nov-11
When you create a screen, if "should" be transparent. To force that, just go:
USESCREEN id%
SETTRANSPARENCY RGB(0,0,0) // transparent color
DRAWRECT 0,0,9999,9999, RGB(0,0,0) // fill with transparent colour, setting alpha bits to 0.0
...now draw opaque stuff.

Title: Re: Transparency in virtual screen
Post by: msx on 2011-Nov-11
Works for me.

Thank you  :nw: