Patches are polygons that are always in front of their father polygon
For example if we shoot a wall in a game then we can add a patch polygon to
make it look like a whole in the wall. Another example will be in a racing car
game when we want to leave wheel marks on the road. We can easily do that
by using STATE_engine_is_movement_possible() to get the polygon of the road
that is under the wheel and then to use this function to paste a wheel mark
on the road polygon.
The first parameter to this function is the polygon that we want to paste the
patch on it.
The second argument is the patch it self.
Note that it is your responsibility to set the location and bitmaps of
the patch polygon.
See also STATE_polygon_add_patch_easy() which saves you all the calculations.
|