/* new window size or exposure */ static void reshape(int width, int height) { GLfloat h = (GLfloat) height / (GLfloat) width; glViewport(0, 0, (GLint) width, (GLint) height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glFrustum(-1.0, 1.0, -h, h, 1.0, 320000.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); Start_Log(); RDRAM=databuffer; if(mode==0) { ProcessDisplayListSW(entrypoint); } else if(mode>0) { DrawLinks(); } Stop_Log(); }
void InitDSP(void) { #ifdef __OPT__ unsigned int i; for (i=0; i<INCR; i++){ CosTable2[i] = (cos((double)(2*PI*i/INCR))); SinTable2[i] = (sin((double)(2*PI*i/INCR))); } #endif #ifdef DebugDSP1 Start_Log(); #endif }
void InitDSP(void) { #ifdef __OPT__ unsigned int i; // CosTable2Fix = (int32 *) ljz_malloc(INCR*sizeof(int32)); // SinTable2Fix = (int32 *) ljz_malloc(INCR*sizeof(int32)); for (i = 0; i < INCR; i++) { CosTable2[i] = (cosf((float)(2 * PI * i / INCR))); SinTable2[i] = (sinf((float)(2 * PI * i / INCR))); CosTable2Fix[i] = (65536 * cosf((float)(2 * PI * i / INCR))); SinTable2Fix[i] = (65536 * sinf((float)(2 * PI * i / INCR))); } #endif #ifdef DebugDSP1 Start_Log(); #endif }