njSetDepthQueue | Japanese
    <-|INDEX|->
Sets depth queue.

### FORMAT

      #include <Ninja.h>
      void  njSetDepthQueue( near, far )
      Float  near
      Float  far

### PARAMETERS

near
  Sets depth queue.
far
  back Z value

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

- Sets depth queue of model drawing.
- Enables when specifies NJD_CONTROL_3D_DEPTH_QUEUE for njControl3D.
- Depth queue changes the degree of transparency from the front toward the back.
- The part which is front or "near" does not become transparent. The part which is back or "far" becomes transparent.

### EXAMPLE

      njInitSystem( NJD_RESOLUTION_640x480, 1 );
      njInitMatrix( matrix, 128 );
      njInit3D( vbuf, 4096, abuf, zbuf, 32 );
      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 );
        njDrawObject( object );
        xx += 257;
        yy += 179;
        zz += 193;
        njWaitVSync();
      }

  The degree of transparency is changed when Z value is -9000 thru -10000.
  If the far values for both Z clip and depth queue are set the same, clipping will be done when it becomes completely transparent.

### NOTES

### RELATED TOPICS

  njDrawModel()
  njDrawObject()
  njControl3D()

njSetDepthQueue |
    <-|INDEX|->