| njCnkDrawModel | English |
|---|---|
▲|INDEX|▼ | |
| チャンクモデルの描画。 | |
#include <Ninja.h> void njCnkDrawModel( model ) NJS_CNK_MODEL *model
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_SPEC_DIR );
njSetView( &view );
while(1) {
njClearMatrix();
njTranslate( NULL, 0.f, 0.f, -10.f );
njRotateXYZ( NULL, xx,yy,zz );
njCnkDrawModel( model );
xx += 257;
yy += 179;
zz += 193;
njWaitVSync();
}
| njCnkDrawModel | ▲|INDEX|▼ |
|---|