STATE_bitmap_get_number_of_mipmap_level

 

 


   *** not so useful.
   Returns the number of mipmap levels that were created for the given bitmap
   The only use of this function is if you intend to change pixels in the bitmap mipmap levels
   For most usage this function is not needed since it is easier to access only mipmap 0
   and to cancel mipmaps for the given bitmap. See below for more info.
  
   This function should only be called after there was at least one STATE_engine_render() call
   Return value:
  		The number of mipmaps or -1 if an error occured.
  		
  
   Some general info about mipmaps:
   ---------------------------------
  	When bitmapss are loaded into the engine, the engine automatically creates
    different version of the bitmap. For example if the bitmap loaded is 256x256
  	then the engine will create additional bitmaps in the size of 128x128, 64x64, 32x32, ... 1x1
  	This is a known technique that improves graphic quality significantly.
  	When rendering a polygon that uses this bitmap the most suitable mipmap levels are selected
  	and blended together.
  	This is done automaticall and internally so you shouldn't concern about it at all
  	except when using STATE_bitmap_set_pixel(). Using this function you can
  	access each mipmap level.
  

 

 

Go to page 1      Select API

 

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