| njCnkDrawObject | English |
|---|---|
▲|INDEX|▼ | |
| チャンクオブジェクトの描画。 | |
#include <Ninja.h> void njCnkDrawObject( object ) NJS_CNK_OBJECT *object
sbInitSystem( NJD_RESOLUTION_640x240_NTSCNI, NJD_FRAMEBUFFER_MODE_RGB565, 1 );
njInitVertexBuffer( 1000000, 0, 1000, 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 );
njCnkDrawObject( object );
xx += 257;
yy += 179;
zz += 193;
njWaitVSync();
}
| njCnkDrawObject | ▲|INDEX|▼ |
|---|