STATE_object_get_first_polygon

 

 


   Returns a handle to the object first polygon
   Used in conjunction with STATE_object_get_next_polygon()
   to traverse all the object polygons
   example:
  		for(DWORD poly=STATE_object_get_first_polygon(obj); poly!=NULL; poly=STATE_object_get_next_polygon(obj, poly))
  		{
  			  do something with the polygon. For rxsmple lets check its name
  			char *name=STATE_polygon_get_name(poly);
  			...
  		}
  
   Note that this 2 functions wont work if the flag CREATE_BSP_FOR_DYNAMIC_OBJECTS 
   is given when calling STATE_engine_load_world() (you will probably never use this flag ...)
   In this rare case use the function STATE_object_get_all_polygons() instead

 

 

Go to page 1      Select API

 

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