njFastDrawModel | Japanese |
---|---|
<-|INDEX|-> | |
Draws Models |
#include <Ninja.h> void njFastDrawModel( model ) NJS_MODEL *model
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 ); njFastDrawModel( model ); xx += 257; yy += 179; zz += 193; njWaitVSync(); }
njFastDrawModel | <-|INDEX|-> |
---|