|
#define ALL_PATCHES 1 delete all the patches of a given polygon
#define REGULAR_PATCHES 2 delete all the regular patches of a given polygon (patches that were mad using the function STATE_polygon_add_patch() and STATE_polygon_add_patch_easy() )
#define SHADOW_PATCHES 4 delete all the shadow patches of a given polygon (patches that were created in the process of creating shade
Delete patches of the given polygon. If the given polygon is a patch in itself
then the function will return immediately (without deleting)
Example A:
Deleting all the patches of a given polygon
STATE_polygon_delete_patches(my_polygon, ALL_PATCHES);
Example B:
Deleting all the patches that were created using the functions
STATE_polygon_add_patch() and STATE_polygon_add_patch_easy()
STATE_polygon_delete_patches(my_polygon, REGULAR_PATCHES);
Example C:
Delete all the patches that were created using the function STATE_engine_create_shadow()
STATE_polygon_delete_patches(my_polygon, SHADOW_PATCHES);
Example D:
Delete patches that were created using the function STATE_engine_create_shadow() with a serial_number==220
STATE_polygon_delete_patches(my_polygon, 220);
See also: STATE_engine_create_shadow(), STATE_polygon_add_patch() ,STATE_polygon_add_patch_easy()
STATE_group_delete_patches()
|