#include <rectlist.h>
Collaboration diagram for RectList:

Public Member Functions | |
| RectList (int numrects=1024) | |
| Constructor to specify size of stack. | |
| Rect | operator[] (int) |
| Operator to make class act like an array. | |
| Rect | Pop () |
| Pops a rectangle off the top of the stack. | |
| void | Update (SDL_Surface *screen) |
| Updates the represented portions of the screen. | |
| void | Clear () |
| Totally empties the stack. | |
| bool | Remove (int index) |
| Removes the selected rectangle from the stack. | |
| bool | Push (Rect r) |
| Pushes a rect onto the top of the stack. | |
| bool | Reduce (SDL_Surface *screen) |
| Attempts to merge overlapping rectangles. | |
| int | Pos () |
| Returns the current position in the stack. | |
| int | Size () |
| Returns the number of elements in the stack. | |
| ~RectList () | |
| Destructor, frees all data. | |
1.3.4