/************************************************************ * * * simplest 3D object viewer * * * * * L Evans 27/01/97 * * * * Copyright (C) 1996 Sony Computer Entertainment Inc. * * All Rights Reserved * * * ***********************************************************/ #include #define SCREEN_WIDTH 320 #define SCREEN_HEIGHT 240 #define PACKETMAX2 (2048*24) /* Max GPU packets */ static PACKET packetArea[2][PACKETMAX2]; /* GPU PACKETS AREA */ #define SINGLE_MODEL_ADDRESS 0x800c0000 #define OT_LENGTH 9 static GsOT Wot[2]; /* Handler of OT */ static GsOT_TAG wtags[2][1<coord.t[0]; tempMatrix.t[1] = coordSystem->coord.t[1]; tempMatrix.t[2] = coordSystem->coord.t[2]; RotMatrix(rotationVector, &tempMatrix); // get rotation matrix from rotation vector coordSystem->coord = tempMatrix; // assign new matrix to coordinate system coordSystem->flg = 0; // tell GTE that coordinate system has been updated } void PadInit (void) { GetPadBuf(&bb0, &bb1); } u_long PadRead(void) { return(~(*(bb0+3) | *(bb0+2) << 8 | *(bb1+3) << 16 | *(bb1+2) << 24)); }