API Functions

 

 



   About layers and the STATE_layer API
   -------------------------------------
   Layers are polygons that appear on top of the rendered world.
   Think of layers as the 2D mechanism of the engine.
   One can use layers for displaying information such as the
   player health, a cross hair, simulate looking through binocular etc.
   One can use all the polygon and point functions in order to modify the created layer
   A few of the functions that you might probably want to use are:
  		STATE_polygon_disable(), STATE_polygon_enable(), STATE_polygon_set_bitmap_fill()
  		STATE_polygon_set_light(), STATE_polygon_set_translucent(). STATE_polygon_move() 
  		STATE_polygon_shift_bitmap(), STATE_polygon_add_point() STATE_point_set_xyz()
  		STATE_polygon_rotate_x/y/z() or any other polygon API function.
  
   Layers can also be used as 2D sprites (use STATE_polygon_move() or STATE_polygon_set_location() to move the layer)
  
   Layer have points that you can modify using the STATE_point_api()
   No matter what is the size of the window which you render on the
   top left corner of the rendered screen is mapped to 0,0 and the bottom right corner is 100,100
   You can also change the Z value of the layer points see STATE_layer_set_depth()

   

1. STATE_layer_create

2. STATE_layer_set_depth

3. STATE_layer_set_shape

4. STATE_layer_use_for_painting_shadows

5. STATE_layer_get_at_point

 

 

Go to page 1     Select API

 

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