C
void GOLRedrawRec( SHORT left, SHORT top, SHORT right, SHORT bottom );
Overview
This function marks all objects in the active list intersected by the given rectangular area to be redrawn.
Input Parameters
Input Parameters |
Description |
SHORT left |
Defines the left most border of the rectangle area. |
SHORT top |
Defines the top most border of the rectangle area. |
SHORT right |
Defines the right most border of the rectangle area. |
SHORT bottom |
Defines the bottom most border of the rectangle area. |
Returns
none
Preconditions
none
Side Effects
none
Example
OBJ_HEADER *pTemp; OBJ_HEADER *pAllObjects; // assume *pAllObjects points to a list of all existing objects // created and initialized // mark all objects inside the rectangle to be redrawn GOLRedrawRec(10,10,100,100); pTemp = pAllObjects; GOLStartNewList(); // reset active list while(pTemp->pNxtObj != NULL) { if (pTemp->state&0x7C00) // add only objects to be GOLAddObject(pTemp); // redrawn to the active list pTemp = pTemp->pNxtObj; } GOLDraw(); // redraw active list