STATE_object_set_bitmap

 

 


#define DYN_MAX_NUM_OF_BITMAPS 32

   *** very important
   Sets the given bitmap to all the polygons of the object. The bitmap serves as a skin.
   The behavior of the function depends whether the object uses an Effect or not
   When not using an effect:
  		The object can have only two bitmaps associated with it. the rest are ignored
  		Only bitmap_index==0 and bitmap_index==1 are relevant.
  		Calling this function with bitmap_index==0 would set the primary bitmap of all the polygons
  		belonging to this object.
  
   When an Effect is used
  		DYN_MAX_NUM_OF_BITMAPS bitmaps can associated with the object.
  		Whether they are relevent or not depends on the effect.
  		for most effect only 1 or two bitmaps are used
  
   Parameters
  		object_handle: The object handle
  
  		bitmap_handle: The bitmap handle
  
  		bitmap_index: A zero based index. Any number between 0 and DYN_MAX_NUM_OF_BITMAPS-1
  
   Return value:
  		OK or VR_ERROR 
  
   Example:
  	STATE_object_set_bitmap(my_object, my_bitmap, 0);
  

 

 

Go to page 1      Select API

 

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