STATE_engine_render_on_top_of_previous_rendering

 

 


   *** Very Useful


   What does this function do:
   ---------------------------
   The default is NO, which means that each render will
   clear the result of the previous rendering before painting the new picture.
  
   Why do we need this function:
   ------------------------------
  	There are two cases in which one should consider calling this function
  	with the argument YES
  	1) When our world is an indoor world (see defenition below). In this case clearing the screen is simply not needed.
  	   (by not clearing the previous screen we could improve a bit the speed of each render)
  	2) When we want to create special effects.
  
  
   Terms:
   -----
   An inddor world for this matter is a world that no matter where you are
   inside the world, each pixel on the rendered image belongs to a polygon in your world
   or in other world, you never get to see the background.
  
   Remarkds
   --------
   If there is one object inside the world which encompass the whole world then
   use STATE_object_use_as_skybox(). This would give better results then using this function.
  
   Example:
   --------
   To understand the effect of this function simply call it and see what you get.
   Example: STATE_engine_render_on_top_of_previous_rendering(YES);
  

 

 

Go to page 1      Select API

 

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