|The area on the screen that must be redrawn. |
|The index of the current render state. |
|Tracks the dirty status. |
|The number of rectangles that each list in rects can contain. |
|The index of the next render state. |
|The number of rectangles needing an update in each of the lists. |
|SDL_Rect *||rects |
|Lists of rectangles that need to be redrawn. |
|Flags the need to render everything. |
|The total number of states presently supported. |
The list holds changes for the current frame, and if double buffering is used, for the next frame.
For internal use only.
Definition at line 50 of file render.c.
Tracks the dirty status.
This was originally a flag, but needed to become an integer to properly handle multiple display states. The value is equal to the number of states that need to be updated. If the value is greater than zero, Render() will render a frame and decrement the value. To flag the display as dirty, set the value to totalStates.
Lists of rectangles that need to be redrawn.
After a state has been rendered, the rectangles in the corresponding list will remain but will be overwritten rather than reused.
If two updated items are in overlapping rectangular regions and the area of the overlap is less than the area of the rect containing both overlapping rects minus the area of the overlapping rects plus the area of the overlap, then both overlapping rects will be in the update list. Otherwise, one larger rect containing both overlapping rects will be in the list.
Flags the need to render everything.
This disregards previous display states, skipping logic used to determine a subset that needs to be redrawn. With this flag set, Render() will decrement dirty, and if it is zero, this flag will be cleared.
The total number of states presently supported.
This value can be less than BACK_STATES depending on how the renderer is initalized.