*object | オブジェクト構造体へのポインタ |
njSetEasyLight() | 光源の設定 |
njSetEasyLightIntensity() | 光源の強さの設定 |
njSetEasyLightColor() | 光源の色の設定 |
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 ); njSetView( &view ); njSetEasyLight( 0.f, 0.f, 1.0f ); njSetEasyLightIntensity( 1.0f, 0.0f ); njSetEasyLightColor( 1.0f, 1.0f, 1.0f ); while(1) { njClearMatrix(); njTranslate( NULL, 0.f, 0.f, -10.f ); njRotateXYZ( NULL, xx,yy,zz ); njEasyDrawObject( Object ); xx += 257; yy += 179; zz += 193; njWaitVSync(); }