STATE_polygon_set_bitmap_rotation

 

 


   Rotates the polygon bitmap. A rotation of one means shift texture coords one position.
   the rotation is done in absolute units so that calling STATE_polygon_set_bitmap_rotation(poly,0);
   will always reset the bitmap to its original position.
   Parametrs:
  		rotation_count
  			defines how many vertices to shift the bitmap coords. The number given is in absolute values so that 
  			calling with the same value will always give the same results no matter how many rotation have been done before.
  			rotation_count could also be negative
  
   Examples:
  		A)
  		  rotates the bitmap so that the texture coords of the second becomes the texture coords of the first point, and so on.
  		STATE_polygon_set_bitmap_rotation(poly, 1);
  
  		B)
  		  reset the bitmap to its priginal position.
  		STATE_polygon_set_bitmap_rotation(poly, 0);
  

 

 

Go to page 1      Select API

 

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