njFastDrawObject Japanese
<-|INDEX|->
Draws objects

FORMAT

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

PARAMETERS

object
pointer for the object structure

RETURN VALUE

None

ERROR VALUE

None

FUNCTION


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 );
    njFastDrawObject( object );
    xx += 257;
    yy += 179;
    zz += 193;
    njWaitVSync();
  }

NOTES


RELATED TOPICS

njInit3D()
njDrawModel()
njControl3D()
njSetConstantAttr()
njSetConstantMaterial()

njFastDrawObject
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997