How is Masking done?

BlitzMax Forums/BlitzMax Beginners Area/How is Masking done?

altitudems(Posted 2005) [#1]
Remember in Zelda 3 how when entered or exited a house the screen would shrink or grow in the shape of a circle masking out the rest of the scene? How do I go about masking things in MAX? Do I have to create a pixmap the same size as the screen and the draw black on it everywhere but where the circle should be? Wouldn't that be kinda slow? I'd like to not have to resort to using direct OpenGL so that my code can support other APIs. Any help is appreciated. Thanks :)


tonyg(Posted 2005) [#2]
Can you draw a black (or other colour set to transparent mask) circle image and then use a setscale loop to increase/decrease the size of the image?