Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
alpha blending
#1
Whats the easiest way to do this in FB? Do I have to use the SDL library or? Thanks.
[Image: freebasic.png]
Reply
#2
dunno about SDL, but with the built-in FB gfxlib you can do it (but you have to get latest 0.14 pre-release version). Have a look here:

http://forum.qbasicnews.com/viewtopic.php?t=9630
ngelo Mottola - EC++
Reply
#3
how unstable is .14? And then whats the method used to do this?
[Image: freebasic.png]
Reply
#4
Put (x, y), myarray, ALPHA

You can use the RGBA macro to set the alpha channels on colors.
Reply
#5
0.14 pre-release is as stable as 0.13 as far as I know. About the method for alpha blending, you basically use the good old PUT, but you pass ALPHA as drawing mode as Jofers already pointed out ; you should really read the forum thread whose link to I posted on my previous post...
ngelo Mottola - EC++
Reply
#6
oh, somehow I missed that, sorry. thanks for the help
edit: great, got it all working now. thx for all the help and the great lib! Big Grin
[Image: freebasic.png]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)