##### Ninja Library - Model Function

# njSetDepthQueue

Sets the depth queue

### FORMAT

`

  void njSetDepthQueue( near, far )
  Float near
  Float far

`

### PARAMETER

  `near` | Z value this side
  `far` | Back Z value

### RETURN

  None

### DESCRIPTION

  Sets depth queue at the time model is drawn. Effective when NJD_CONTROL_3D_DEPTH_QUEUE is specified for `njContro3D()` function. Linear change in transparency of texture from this side to the back. There is no transparency from "near" to this side, while there is complete transparency in the back after "far."

### EXAMPLE

      sbInitSystem( NJD_RESOLUTION_640x240_NTSCNI, NJD_FRAMEBUFFER_MODE_RGB565, 1 );
      njInitVertexBuffer( 500000, 0, 10000, 0, 0 );
      njInitMatrix( matrix, 128, 0);
      njInit3D( vbuf, 4096 );
      njInitView( &view );
      njCreateLight( &light, NJD_DIR_LIGHT );
      njSetView( &view );
      njControl3D( NJD_CONTROL_3D_DEPTH_QUEUE );
      njSetDepthQueue( -9000.f, -10000.f );
      njClipZ( -10.f, -10000.f );
      while(1) {
       njClearMatrix();
       njTranslate( NULL, 0.f, 0.f, -10.f );
       njRotateXYZ( NULL, xx,yy,zz );
       njDrawModel( model );
       xx += 257;
       yy += 179;
       zz += 193;
       njWaitVSync();
      }

### NOTE

  Transparency changes with a Z value of -9000 to -10000. If the "far" value of the Z clip and the depth queue are the same, clipping starts at total transparency.

### REFERENCE

  `njControl3D()
  njDrawModel()
  njDrawObject()
  `

njSetDepthQueue

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999