GLBasic forum

Main forum => GLBasic - en => Topic started by: Crivens on 2011-Oct-14

Title: Alphamode default
Post by: Crivens on 2011-Oct-14
Alphamode seems to get reset to 0 after drawing a sprite (or perhaps zoomsprite it's difficult to tell, but it does reset at some point when drawing sprites). Is there a way to set the default value of alphamode? Basically I pretty much use -1 for everything to get all the correct alpha values, and rarely want to use anything else. Just a bit annoying to have to put ALPHAMODE -1 all the time. To be able to say DEFAULTALPHAMODE -1 would be great.

Cheers
Title: Re: Alphamode default
Post by: ampos on 2011-Oct-14
+1
Title: Re: Alphamode default
Post by: MrTAToad on 2011-Oct-14
Yes, ALPHAMODE (with a few other commands) get reset after the SHOWSCREEN command.  A command to set a default value would be useful...
Title: Re: Alphamode default
Post by: r0ber7 on 2011-Oct-14
while 1
draw stuff
showscreen
alphamode -1
wend

?
Title: Re: Alphamode default
Post by: spicypixel on 2011-Oct-15
Quote from: MrTAToad on 2011-Oct-14
Yes, ALPHAMODE (with a few other commands) get reset after the SHOWSCREEN command.  A command to set a default value would be useful...

:good:
Title: Re: Alphamode default
Post by: Crivens on 2011-Oct-15
Ocean:that is what I ask for in the first post

As for setting to -1 at the end well some commands seem to reset it

Cheers
Title: Re: Alphamode default
Post by: kanonet on 2011-Oct-15
I think only SHOWSCREEN should reset ALPHAMODE, if a DRAWSPRITE or ZOOMSPRITE resets it, it is probably a bug?
Title: Re: Alphamode default
Post by: Ruidesco on 2011-Oct-16
Glen Grant, reducing your attention and reading comprehension since the 19th century. :booze:
Title: Re: Alphamode default
Post by: Ian Price on 2011-Oct-16
Glenfiddich? Single Mall Scotch Whisky? :booze: I'll dzrink to zhat! Hic.
Title: Re: Alphamode default
Post by: Falstaff on 2011-Oct-16
This is what I found.. and it's not just SHOWSCREEN, because it honestly seemed like every time I had a new function that drew something I had to call ALPHAMODE again. My guess was that it somehow was related to the scope you call it in...