STATE_group_set_patches_color

 

 




  Set the color of all the patches in the group
   values for red green and blue should be in the range [0-255]
   patches_type should be one of the following: ALL_PATCHES, SHADOW_PATCHES, REGULAR_PATCHES
   or the serial number that was given when the patches were created
   Example A:
  		  Setting the color to all the patches of the given group
  		STATE_group_set_patches_color(my_room, ALL_PATCHES);
  
   Example B:
  		  Setting the color to all the patches that were created using the functions
  		  STATE_polygon_add_patch() and STATE_polygon_add_patch_easy()
  		STATE_group_set_patches_color(my_room, REGULAR_PATCHES);
    
   Example C:
  		Setting the color to all the patches that were created using the function STATE_engine_create_shadow()
  		STATE_group_set_patches_color(my_room, SHADOW_PATCHES);
  
   Example D:
  		Delete patches that were created using the function STATE_engine_create_shadow() with a serial_number==220
  		STATE_group_set_patches_color(my_room, 39);
  
   See also: STATE_engine_create_shadow(), STATE_polygon_add_patch() ,STATE_polygon_add_patch_easy()
  			 STATE_polygon_delete_patches(), STATE_group_delete_patches()

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com