| /RvlSDK-2.1/build/demos/gxdemo/src/Simple/ |
| D | smp-toy-anim.c | 231 CurMask = TestPoint(curGrid, CurPos.x, CurPos.z); in AnimTick() 245 fullMask = TestPoint(curGrid, tp.x, tp.z); in AnimTick() 252 CurPos.x -= (CurPos.z - SLOPE_ZSTART) * SLOPE_SLOPE; in AnimTick() 261 nextVel.z = -curVel.z * WALLZ_BOUNCE; in AnimTick() 267 nextVel.z = curVel.z; in AnimTick() 272 if (curVel.z < 0.0F) nextVel.z = -curVel.z * OUT_CORNER_BOUNCE; in AnimTick() 277 if (curVel.z < 0.0F) nextVel.z = -curVel.z * OUT_CORNER_BOUNCE; in AnimTick() 282 if (curVel.z > 0.0F) nextVel.z = -curVel.z * OUT_CORNER_BOUNCE; in AnimTick() 287 if (curVel.z > 0.0F) nextVel.z = -curVel.z * OUT_CORNER_BOUNCE; in AnimTick() 295 nextVel.z = -curVel.z * IN_CORNER_BOUNCE; in AnimTick() [all …]
|
| D | smp-toy-draw.c | 373 static void DrawBall( f32 x, f32 y, f32 z ) in DrawBall() argument 392 GXPosition3f32( x - BALL_SIZEX, y, z - BALL_SIZEZ ); in DrawBall() 394 GXPosition3f32( x + BALL_SIZEX, y, z - BALL_SIZEZ ); in DrawBall() 396 GXPosition3f32( x + BALL_SIZEX, y, z + BALL_SIZEZ ); in DrawBall() 398 GXPosition3f32( x - BALL_SIZEX, y, z + BALL_SIZEZ ); in DrawBall() 604 x = curpos.x - ((curpos.z - SLOPE_ZSTART) * SLOPE_SLOPE); in DrawTick() 605 DrawBall(x, 0.0F, curpos.z); in DrawTick() 609 DrawBall(curpos.x, 0.0F, curpos.z); in DrawTick()
|
| D | smp-onetri_dl.c | 217 f32 z; // Translation in z. in DrawTick() local 231 for(z = STRUT_LN; z > -10*STRUT_LN; z -= STRUT_LN) in DrawTick() 235 MTXRowCol(m, 2, 3) = z; in DrawTick()
|
| D | smp-onetri.c | 234 f32 z; // Translation in z. in DrawTick() local 248 for(z = STRUT_LN; z > -10*STRUT_LN; z -= STRUT_LN) in DrawTick() 252 MTXRowCol(m, 2, 3) = z; in DrawTick()
|
| /RvlSDK-2.1/dvddata/wpadtests/ |
| D | MusicBox01.wav | 23 窓z奄存ィ)・モ・ノzΚ)・!ー;+・タl瑞))♂L・註Z・ 24 ニ・・/!竏・z┴ぴ"ケZチウ!8ウ骸・Τ 26 ウ孵・Y憧タ<)ア)ト据{ケZヤ・メ:・Zヲ・ 。貯0ム,<"・・J伯Hウ・・<・ニ・曵憧$・(貯Jキ・・ 「。・-9□[ァ」 テ隼ziナ・・更「・… 29 *クJ、妥.・:ヌ・ト儉タ<ツ・カ紀§メ・9「-エー[伏Z。3・(★zΚ割嬲┃Pテ・リ{チ ト稀。 ・ 32 ・・タヌゥY・)・蕗)ォAチノy・]0ア.(キタ_B・AA・A・2・$・$・33・$%%・・%瀘鱗l麟}鱗}麟|ァノlァハzラシ{ヌサ{ァコ{キォ{ヲ弸ナ杭ヨ司… 41 ;吏8ト姨道z伏I著*ネ[・ム>・ァケz、jエ・}0鶏」・ 47 (ふ・Y禿ェzいィ:"メ。>オ・Xエ。I蛤K<ア・<1竭開オ哽Υイ^陳+Pモ。I▲妍K味婁辻>!モ。 促・Zヲ。卯乍+# 打・(ナ翠:じー<*チ.(・・… 55 I・徽Υー|」チ+,@モ。8「「(┫ゥz<竕=!メ・ 崇・Iナ瑞+)・ 56 +ム・9モ・9エ二,搬*+!ウモ/)ツ 57 i」」コzこ? ウ]」・i、。蟹 [all …]
|
| /RvlSDK-2.1/build/libraries/mtx/src/ |
| D | quat.c | 89 r->z = p->z + q->z; in C_QUATAdd() 145 r->z = p->z - q->z; in C_QUATSubtract() 212 r->w = p->w*q->w - p->x*q->x - p->y*q->y - p->z*q->z; in C_QUATMultiply() 213 r->x = p->w*q->x + p->x*q->w + p->y*q->z - p->z*q->y; in C_QUATMultiply() 214 r->y = p->w*q->y + p->y*q->w + p->z*q->x - p->x*q->z; in C_QUATMultiply() 215 r->z = p->w*q->z + p->z*q->w + p->x*q->y - p->y*q->x; in C_QUATMultiply() 317 r->z = q->z * scale; in C_QUATScale() 366 return (q->x*p->x + q->y*p->y + q->z*p->z + q->w*p->w); in C_QUATDotProduct() 416 mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z) + (src->w * src->w); in C_QUATNormalize() 424 unit->z = src->z * mag; in C_QUATNormalize() [all …]
|
| D | vec.c | 121 ab->z = a->z + b->z; in C_VECAdd() 190 a_b->z = a->z - b->z; in C_VECSubtract() 259 dst->z = src->z * scale; in C_VECScale() 325 mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z); in C_VECNormalize() 333 unit->z = src->z * mag; in C_VECNormalize() 413 sqmag = (v->x * v->x) + (v->y * v->y) + (v->z * v->z); in C_VECSquareMag() 549 dot = (a->x * b->x) + (a->y * b->y) + (a->z * b->z); in C_VECDotProduct() 613 vTmp.x = ( a->y * b->z ) - ( a->z * b->y ); in C_VECCrossProduct() 614 vTmp.y = ( a->z * b->x ) - ( a->x * b->z ); in C_VECCrossProduct() 615 vTmp.z = ( a->x * b->y ) - ( a->y * b->x ); in C_VECCrossProduct() [all …]
|
| D | mtxvec.c | 77 vTmp.x = m[0][0]*src->x + m[0][1]*src->y + m[0][2]*src->z + m[0][3]; in C_MTXMultVec() 78 vTmp.y = m[1][0]*src->x + m[1][1]*src->y + m[1][2]*src->z + m[1][3]; in C_MTXMultVec() 79 vTmp.z = m[2][0]*src->x + m[2][1]*src->y + m[2][2]*src->z + m[2][3]; in C_MTXMultVec() 84 dst->z = vTmp.z; in C_MTXMultVec() 182 vTmp.x = m[0][0]*srcBase->x + m[0][1]*srcBase->y + m[0][2]*srcBase->z + m[0][3]; in C_MTXMultVecArray() 183 vTmp.y = m[1][0]*srcBase->x + m[1][1]*srcBase->y + m[1][2]*srcBase->z + m[1][3]; in C_MTXMultVecArray() 184 vTmp.z = m[2][0]*srcBase->x + m[2][1]*srcBase->y + m[2][2]*srcBase->z + m[2][3]; in C_MTXMultVecArray() 189 dstBase->z = vTmp.z; in C_MTXMultVecArray() 324 vTmp.x = m[0][0]*src->x + m[0][1]*src->y + m[0][2]*src->z; in C_MTXMultVecSR() 325 vTmp.y = m[1][0]*src->x + m[1][1]*src->y + m[1][2]*src->z; in C_MTXMultVecSR() [all …]
|
| D | mtx44vec.c | 78 vTmp.x = m[0][0]*src->x + m[0][1]*src->y + m[0][2]*src->z + m[0][3]; in C_MTX44MultVec() 79 vTmp.y = m[1][0]*src->x + m[1][1]*src->y + m[1][2]*src->z + m[1][3]; in C_MTX44MultVec() 80 vTmp.z = m[2][0]*src->x + m[2][1]*src->y + m[2][2]*src->z + m[2][3]; in C_MTX44MultVec() 81 w = m[3][0]*src->x + m[3][1]*src->y + m[3][2]*src->z + m[3][3]; in C_MTX44MultVec() 87 dst->z = vTmp.z * w; in C_MTX44MultVec() 167 vTmp.x = m[0][0]*srcBase->x + m[0][1]*srcBase->y + m[0][2]*srcBase->z + m[0][3]; in C_MTX44MultVecArray() 168 vTmp.y = m[1][0]*srcBase->x + m[1][1]*srcBase->y + m[1][2]*srcBase->z + m[1][3]; in C_MTX44MultVecArray() 169 vTmp.z = m[2][0]*srcBase->x + m[2][1]*srcBase->y + m[2][2]*srcBase->z + m[2][3]; in C_MTX44MultVecArray() 170 w = m[3][0]*srcBase->x + m[3][1]*srcBase->y + m[3][2]*srcBase->z + m[3][3]; in C_MTX44MultVecArray() 176 dstBase->z = vTmp.z * w; in C_MTX44MultVecArray() [all …]
|
| /RvlSDK-2.1/build/demos/gxdemo/src/PixelProc/ |
| D | pix-z-comp.c | 190 ZMode* z = s->zmode; in SceneDraw() local 201 myDrawModel( (s32)v->width, (s32)v->height, z ); in SceneDraw() 223 ZMode* z = s->zmode; in SceneDrawInfo() local 239 if ( z->title ) in SceneDrawInfo() 241 DEMOPuts( 15, 12, 0, z->title ); in SceneDrawInfo() 248 if ( z->func == myZComp[lid].func ) break; in SceneDrawInfo() 277 ZMode* z; in SceneControl() local 303 z = s->zmode; in SceneControl() 304 myScene[0].zmode = z; in SceneControl() 316 if ( z->func == myZComp[lid].func ) break; in SceneControl() [all …]
|
| D | cmn-model.c | 148 f32 x, y, z, dir; member 197 p->z += dz * p->dir; in cmModel1_Anim() 198 dist = (p->x * p->x + p->z * p->z); in cmModel1_Anim() 206 p->z += p->dir; in cmModel1_Anim() 208 if ( p->z > c->zfar || p->z < c->zfar / 3 ) in cmModel1_Anim() 215 p->z += p->dir; in cmModel1_Anim() 218 if ( p->z > c->zfar || p->z < c->znear ) in cmModel1_Anim() 227 p->z = ( p->z > c->zfar ) ? c->znear : c->zfar; in cmModel1_Anim() 296 MTXTrans( mmtx, obj1[i].x-12.0f, obj1[i].y-4.0f, obj1[i].z); in cmModel1_Draw() 303 DEMOPrintf( 0, 0, 0, "%3d", (s32)obj1[i].z ); in cmModel1_Draw() [all …]
|
| D | pix-sub.c | 255 DefaultBallPos[i].z = 0.0F; in DrawInit() 547 MTXTransApply(ms, mt, sc->ballPos[i].x, sc->ballPos[i].y, sc->ballPos[i].z); in DrawBalls() 578 zscale = (sc->ballPos[i].z + 400.0F) / 2.0F; in DrawShadowVol() 579 zcenter = (sc->ballPos[i].z - 400.0F) / 2.0F; in DrawShadowVol() 601 s8 x, y, z; in DrawFloor() local 612 z = 0; in DrawFloor() 618 z = (s8)(NUM_GRIDS - x - y); in DrawFloor() 621 GXPosition3s8(x, y, z); in DrawFloor() 624 GXPosition3s8(x, (s8)(y+1), z); in DrawFloor() 627 GXPosition3s8((s8)(x+1), (s8)(y+1), z); in DrawFloor() [all …]
|
| /RvlSDK-2.1/include/revolution/gx/ |
| D | GXEmVert.h | 47 void EmGXParam3f32( f32 x, f32 y, f32 z ); 48 void EmGXParam4f32( f32 x, f32 y, f32 z, f32 w ); 53 void EmGXPosition3f32 ( float x, float y, float z ); 54 void EmGXPosition3u16 ( u16 x, u16 y, u16 z ); 55 void EmGXPosition3s16 ( s16 x, s16 y, s16 z ); 56 void EmGXPosition3u8 ( u8 x, u8 y, u8 z ); 57 void EmGXPosition3s8 ( s8 x, s8 y, s8 z ); 67 void EmGXNormal3f32 ( f32 x, f32 y, f32 z ); 68 void EmGXNormal3s16 ( s16 x, s16 y, s16 z ); 69 void EmGXNormal3s8 ( s8 x, s8 y, s8 z );
|
| D | GXVert.h | 196 void func(const ts x, const ts y, const ts z); 200 void func(const ts x, const ts y, const ts z, const ts w); 239 static inline void func(const ts x, const ts y, const ts z) \ 246 *((td *) __EmBuffPtr) = (td) z; \ 249 Em##func(x, y, z); \ 256 static inline void func(const ts x, const ts y, const ts z, const ts w) \ 263 *((td *) __EmBuffPtr) = (td) z; \ 268 Em##func(x, y, z, w); \ 299 static inline void func(const ts x, const ts y, const ts z) \ 303 GXWGFifo.td = (td) z; \ [all …]
|
| /RvlSDK-2.1/build/demos/gxdemo/src/Indirect/ |
| D | ind-pseudo-3d.c | 45 f32 x, y, z; member 75 void updateScene(Mtx cam, f32 r1, f32 r2, f32 x, f32 y, f32 z, f32 mag); 123 height[r][c].z = h; in adjustPoint() 145 height[r][c].z = (f32) 0; in createHeightField() 158 adjustPoint(height, r, 0, height[r-1][0].z); in createHeightField() 162 adjustPoint(height, 0, c, height[0][c-1].z); in createHeightField() 171 h = (height[r-1][c].z + height[r][c-1].z)/2.0f; in createHeightField() 184 dx = height[r][c+1].z - height[r][c].z; in createHeightField() 188 dx = height[r][c+1].z - height[r][c-1].z; in createHeightField() 192 dx = height[r][c].z - height[r][c-1].z; in createHeightField() [all …]
|
| D | ind-bump-xyz.c | 72 f32 x, y, z; member 134 void updateDonut(Mtx cam, f32 r1, f32 r2, f32 x, f32 y, f32 z); 159 cube[0][i].z = 0.5f; in createCube() 162 cube[1][i].z = -h; in createCube() 165 cube[2][i].z = -0.5f; in createCube() 168 cube[3][i].z = h; in createCube() 171 cube[4][i].z = -v; in createCube() 174 cube[5][i].z = v; in createCube() 230 GXPosition3f32(d->x, d->y, d->z); in sendVertex() 360 GXInitSpecularDir(&light, lDir.x, lDir.y, lDir.z); in setLight() [all …]
|
| /RvlSDK-2.1/build/libraries/demo/src/ |
| D | DEMOPuts.c | 325 void DEMOPuts( s16 x, s16 y, s16 z, char* string ) in DEMOPuts() argument 360 GXPosition3s16( (s16)(i*8+x ), (s16)(y ), z ); in DEMOPuts() 362 GXPosition3s16( (s16)(i*8+x+8), (s16)(y ), z ); in DEMOPuts() 364 GXPosition3s16( (s16)(i*8+x+8), (s16)(y+8 ), z ); in DEMOPuts() 366 GXPosition3s16( (s16)(i*8+x ), (s16)(y+8 ), z ); in DEMOPuts() 391 void DEMOPrintf( s16 x, s16 y, s16 z, char* fmt, ... ) in DEMOPrintf() argument 402 DEMOPuts( x, y, z, buf ); in DEMOPrintf() 516 static void DrawFontChar(int x, int y, int z, int xChar, int yChar) in DrawFontChar() argument 529 GXPosition3s16(posLeft , posTop , (s16) z); in DrawFontChar() 532 GXPosition3s16(posRight, posTop , (s16) z); in DrawFontChar() [all …]
|
| /RvlSDK-2.1/build/libraries/wpad/src/ |
| D | WPADClamp.c | 587 f32 z = (f32)((f32)*pz / (f32)unit.z); in __ClampCube() local 602 if (z < 0.0f) in __ClampCube() 605 z = -z; in __ClampCube() 616 if (z > max) in __ClampCube() 618 z = max; in __ClampCube() 623 z *= signZ; in __ClampCube() 627 *pz = (s16)(z * (f32)unit.z); in __ClampCube() 647 f32 z = (f32)((f32)*pz / (f32)unit.z); in __ClampSphere() local 651 squared = x*x + y*y + z*z; in __ClampSphere() 657 z = z * max / length; in __ClampSphere() [all …]
|
| /RvlSDK-2.1/build/demos/gxdemo/src/TexGen/ |
| D | tg-shadow.c | 469 s8 x, y, z; in DrawFloor() local 480 z = 0; in DrawFloor() 486 z = (s8)(NUM_GRIDS - x - y); in DrawFloor() 489 GXPosition3s8(x, y, z); in DrawFloor() 492 GXPosition3s8((s8)(x+1), y, z); in DrawFloor() 495 GXPosition3s8((s8)(x+1), (s8)(y+1), z); in DrawFloor() 498 GXPosition3s8(x, (s8)(y+1), z); in DrawFloor() 503 GXPosition3s8((s8)(x+1), y, z); in DrawFloor() 506 GXPosition3s8((s8)(x+1), (s8)(y+1), z); in DrawFloor() 509 GXPosition3s8((s8)(x+1), (s8)(y+1), (s8)(z-1)); in DrawFloor() [all …]
|
| D | tg-emboss.c | 232 myLight.pos.z = + myLight.dist * 1.0f / M_SQRT3; in myInitModel() 332 axis.z = 0.5f; in myAnimeModel() 342 if ( pad->dirs & DEMO_STICK_UP ) myLight.pos.z += 2.0f; in myAnimeModel() 343 if ( pad->dirs & DEMO_STICK_DOWN ) myLight.pos.z -= 2.0f; in myAnimeModel() 345 r2 = myLight.pos.x * myLight.pos.x + myLight.pos.z * myLight.pos.z; in myAnimeModel() 352 myLight.pos.z *= scale; in myAnimeModel() 378 GXInitLightPos ( &myLight.obj, lpos.x, lpos.y, lpos.z ); in myDrawModel() 538 GXPosition3f32( myLight.pos.x, myLight.pos.y, myLight.pos.z ); in myDrawModel() 541 GXPosition3f32( myLight.pos.x+2.0f, myLight.pos.y, myLight.pos.z+2.0f ); in myDrawModel() 542 GXPosition3f32( myLight.pos.x+2.0f, myLight.pos.y, myLight.pos.z-2.0f ); in myDrawModel() [all …]
|
| /RvlSDK-2.1/build/demos/axdemo/src/ |
| D | axart3ddemo.c | 790 Camera.translate.z += digAYBtnScale * Camera.zAxis.z; in AnimTick() 823 Camera.translate.z += translate * Camera.xAxis.z; in AnimTick() 831 Camera.translate.z += translate * Camera.yAxis.z; in AnimTick() 839 MTXTrans( ModelMtx, BallPosition.x, BallPosition.y, BallPosition.z ); in AnimTick() 886 MTXRowCol(camera->viewMtx,0,2) = camera->xAxis.z; in CameraUpdate() 891 MTXRowCol(camera->viewMtx,1,2) = camera->yAxis.z; in CameraUpdate() 896 MTXRowCol(camera->viewMtx,2,2) = camera->zAxis.z; in CameraUpdate() 899 MTXTrans(transMtx, -camera->translate.x, -camera->translate.y, -camera->translate.z); in CameraUpdate() 913 hAngle = -atan2f( ballPosInCamera.x, ballPosInCamera.z ) + 3.14f; in CameraUpdate() 915 hAngle = -atan2f( ballPosInCamera.x, ballPosInCamera.z ) - 3.14f; in CameraUpdate() [all …]
|
| /RvlSDK-2.1/include/revolution/mtx/ |
| D | GeoTypes.h | 57 f32 x, y, z; member 69 s16 z; member 79 f32 x, y, z, w; member
|
| /RvlSDK-2.1/include/demo/ |
| D | DEMOPuts.h | 66 extern int DEMORFPuts ( s16 x, s16 y, s16 z, char* string ); 67 extern int DEMORFPutsEx ( s16 x, s16 y, s16 z, char* string, s16 maxWidth, int … 68 extern int DEMORFPrintf ( s16 x, s16 y, s16 z, char* fmt, ... );
|
| /RvlSDK-2.1/build/demos/gxdemo/src/Geometry/ |
| D | geo-particle.c | 360 vVertical.z = v[2][1]; in CameraUpdate() 364 vHorizontal.z = v[2][0]; in CameraUpdate() 685 vDest.z = nY * 5.0F; in TextureParticleEmit() 695 prt->vVel.z = vDest.z * rRT; in TextureParticleEmit() 699 prt->vPos.z = 0.0F; in TextureParticleEmit() 735 prt->vVel.z = (float)(2 * rndf())-1; in ParticleEmit() 737 (prt->vVel.z * prt->vVel.z); in ParticleEmit() 742 prt->vVel.z *= 0.5; in ParticleEmit() 887 GXPosition3f32(vPoint->x, vPoint->y, vPoint->z); in SendParticlePoint() 897 vPoint1->z - vDelta->z * 2); in SendParticleLine() [all …]
|
| /RvlSDK-2.1/build/demos/gxdemo/src/Lighting/ |
| D | lit-spot.c | 399 lo[sc->cur].pos.z += ( DEMOPadGetTriggerR(0) / 16 ) in AnimTick() 401 Clamp(lo[sc->cur].pos.z, 50, 600); in AnimTick() 429 cloc->z = in AnimTick() 642 ldir.z = cosf(phi) * cosf(theta); in DrawLightMark() 644 len = fabsf(light->pos.z / ldir.z); in DrawLightMark() 647 ldir.z = 0; in DrawLightMark() 663 GXPosition3f32(light->pos.x, -480.0F, light->pos.z); in DrawLightMark() 665 GXPosition3f32(light->pos.x, 480.0F, light->pos.z); in DrawLightMark() 668 GXPosition3f32(-640.0F, light->pos.y, light->pos.z); in DrawLightMark() 670 GXPosition3f32( 640.0F, light->pos.y, light->pos.z); in DrawLightMark() [all …]
|