njSimpleDrawObject | Japanese
    <-|INDEX|->
Draws objects.

### FORMAT

      #include <Ninja.h>
      void  njSimpleDrawObject( objectl )
      NJS_OBJECT  *object

### PARAMETERS

objectPointer to object structure

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

- This function converts the coordinates for an object (model data with a parent-child hierarchy) according to the current matrix and then draws the object.
- The drawing method can be controlled via njControl3D().
- The drawing performance of this routine is better than that of njFastDrawObject().
- However, the light that is registered first is regarded as a parallel light source, so that only the direction of the light source has any effect; the color and intensity of the light source are not reflected in the drawing.
- Furthermore, this function does not support depth cues.

### EXAMPLE

      njInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1 );
      njInitVertexBuffer( 500000, 0, 10000, 0 );
      njInitMatrix( matrix, 128, 0 );
      njInit3D( vbuf, 4096 );
      njInitView( &view );
      njCreateLight( &light, NJD_DIR_LIGHT );
      njSetView( &view );

      while(1) {
        njClearMatrix();
        njTranslate( NULL, 0.f, 0.f, -10.f );
        njRotateXYZ( NULL, xx,yy,zz );
        njSimpleDrawObject( object );
        xx += 257;
        yy += 179;
        zz += 193;
        njWaitVSync();
      }

### NOTES

  Related Items
  njInit3D()
  njDrawModel()
  njControl3D()
  njSetConstantAttr()
  njSetConstantMaterial()

### RELATED TOPICS

njSimpleDrawObject |
    <-|INDEX|->