LayerManager - ViewWindows

ViewWindows are an advanced feature of libwiisprite, as they allow to render only a specific part of a scene at another specific position. It is the friend of friends when doing multiple views or limiting the viewing rage.

They also look complicated on the first look, but they are quite easy. Look at this graph to understand:

viewwindow.png
x and y mark the position of the ViewWindow and width and height specify how big the area should be. For example: if you have a sprite that is drawn at (0;0) and you start your ViewWindow at (5;5), the sprite gets a little bit cut off.

The LayerManagers Draw() function does not alter the content of the ViewWindow at all, just where it is displayed.


Generated on Sun Jun 29 14:29:26 2008 for libwiisprite by  doxygen 1.5.5