##### Ninja Library - Model Function

# njSimpleDrawModel

Draws a basic model

### FORMAT

`

  void njSimpleDrawModel( model )
  NJS_MODEL *model

`

### PARAMETER

  `*model` | Pointer to model structure

### RETURN

  None

### DESCRIPTION

  Performs drawing by coordinate transformation of the current matrix. The drawing method can be specified by `njControl3D()` function. High routine drawing performance enabled using `njFastDrawModel()` function. However, first registered light source is considered as the parallel light source, and only the light source direction is influential. The color and intensity of the light source are not reflected, and the depth queue does not function.

### 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_NO_CLIP_CHECK | NJD_CONTROL_3D_DISP_AXIS );
      while(1) {
       njClearMatrix();
       njTranslate( NULL, 0.f, 0.f, -10.f );
       njRotateXYZ( NULL, xx,yy,zz );
       njSimpleDrawModel( model );
       xx += 257;
       yy += 179;
       zz += 193;
       njWaitVSync();
      }

### REFERENCE

  `njInit3D()
  njControl3D()
  njSimpleDrawObject()
  njSetConstantAttr()
  njSetConstantMaterial()
  `

njSimpleDrawModel

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999