| /RvlSDK-3.2.2/build/demos/wpaddemo/src/ |
| D | dummy_checker.c | 462 s16 y; in renderStatus() local 473 y = Y_START; in renderStatus() 475 DEMOPrintf(x, y, 0, "WPAD Demo -- Dummy checker"); in renderStatus() 476 y+=FONT_HEIGHT; in renderStatus() 477 y+=FONT_HEIGHT; in renderStatus() 478 DEMOPrintf(x, y, 0, "Status :"); y+=FONT_HEIGHT; in renderStatus() 479 DEMOPrintf(x, y, 0, "Type :"); y+=FONT_HEIGHT; in renderStatus() 480 DEMOPrintf(x, y, 0, "Buttons:"); y+=FONT_HEIGHT; in renderStatus() 481 DEMOPrintf(x, y, 0, "DPD0-xy:"); y+=FONT_HEIGHT; in renderStatus() 482 DEMOPrintf(x, y, 0, "DPD1-xy:"); y+=FONT_HEIGHT; in renderStatus() [all …]
|
| D | wpadsample.c | 1017 yDiff = wpad->obj[0].y - wpad->obj[1].y; in getDistance() 1042 s16 y = Y_START; in renderScreen() local 1045 DEMOPrintf(x, y, 0, "WPAD Demo -- WPADSAMPLE"); in renderScreen() 1047 y+=FONT_HEIGHT*2; in renderScreen() 1051 DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y, 0, "Ch%d", i); in renderScreen() 1054 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "ADDR "); in renderScreen() 1055 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "TX-STAT "); in renderScreen() 1056 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "TYPE "); in renderScreen() 1057 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "FORMAT "); in renderScreen() 1058 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "RATE "); in renderScreen() [all …]
|
| D | sync.c | 108 s16 y = 16; in RenderConsoleStatus() local 117 DEMOPrintf( 16, y+=LINE, 0, "WPAD Demo -- Sync"); in RenderConsoleStatus() 119 y += LINE; in RenderConsoleStatus() 121 DEMOPrintf( 16, y+=LINE, 0, "Registered Device Number: %d", WPADGetRegisteredDevNum()); in RenderConsoleStatus() 122 DEMOPrintf( 16, y+=LINE, 0, "Temporary Device Number: %d", WPADGetTemporaryDevNum()); in RenderConsoleStatus() 124 y += LINE; in RenderConsoleStatus() 132 DEMOPrintf( 16, y += LINE, 0, "chan%d: %02x:%02x:%02x:%02x:%02x:%02x [%s]", in RenderConsoleStatus() 145 DEMOPrintf( 16, y += LINE, 0, "chan%d: not connected", chan); in RenderConsoleStatus() 149 DEMOPrintf( 16, y+=LINE*3, 0, "standard: %s [%d device(s)]", std[standard], stdNum); in RenderConsoleStatus() 150 DEMOPrintf( 16, y+=LINE, 0, "simple : %s [%d device(s)]", smp[simple], smpNum); in RenderConsoleStatus()
|
| /RvlSDK-3.2.2/build/libraries/wpad/src/ |
| D | WPADClamp.c | 347 int y; in __ClampStickOctagon() local 355 y = *((s8*)py); in __ClampStickOctagon() 360 y = *((s16*)py); in __ClampStickOctagon() 373 if (0 <= y) in __ClampStickOctagon() 380 y = -y; in __ClampStickOctagon() 392 if (y <= min) in __ClampStickOctagon() 394 y = 0; in __ClampStickOctagon() 398 y -= min; in __ClampStickOctagon() 401 if (x == 0 && y == 0) in __ClampStickOctagon() 418 if (xy * y <= xy * x) in __ClampStickOctagon() [all …]
|
| /RvlSDK-3.2.2/build/libraries/pad/src/ |
| D | Padclamp.c | 155 int y = *py; in ClampStick() local 170 if (0 <= y) in ClampStick() 177 y = -y; in ClampStick() 189 if (y <= min) in ClampStick() 191 y = 0; in ClampStick() 195 y -= min; in ClampStick() 198 if (x == 0 && y == 0) in ClampStick() 206 if (xy * y <= xy * x) in ClampStick() 208 d = xy * x + (max - xy) * y; in ClampStick() 212 y = (s8) (xy * max * y / d); in ClampStick() [all …]
|
| /RvlSDK-3.2.2/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 ); 58 void EmGXPosition2f32 ( float x, float y ); 59 void EmGXPosition2u16 ( u16 x, u16 y ); 60 void EmGXPosition2s16 ( s16 x, s16 y ); [all …]
|
| D | GXVert.h | 191 void func(const ts x, const ts y); 195 void func(const ts x, const ts y, const ts z); 199 void func(const ts x, const ts y, const ts z, const ts w); 223 static inline void func(const ts x, const ts y) \ 228 *((td *) __EmBuffPtr) = (td) y; \ 231 Em##func(x, y); \ 238 static inline void func(const ts x, const ts y, const ts z) \ 243 *((td *) __EmBuffPtr) = (td) y; \ 248 Em##func(x, y, z); \ 255 static inline void func(const ts x, const ts y, const ts z, const ts w) \ [all …]
|
| /RvlSDK-3.2.2/build/libraries/kpadOld/src/ |
| D | KPAD.c | 229 if ( kp->center_org.y < 0.0f ) { in calc_dpd2pos_scale() 230 sy += kp->center_org.y ; in calc_dpd2pos_scale() 232 sy -= kp->center_org.y ; in calc_dpd2pos_scale() 272 sp->horizon.y = kp->acc_horizon.y = kp->obj_horizon.y = 0.0f ; in reset_kpad() 277 sp->acc_vertical.y = 0.0f ; in reset_kpad() 288 sp->acc.y = -1.0f ; in reset_kpad() 336 ep->fs.acc.y = -1.0f ; in reset_kpad() 365 (*dst).y = src->y * (projection_height / 2.0f) * 1.2f; in KPADGetProjectionPos() 389 vy = kp->hard_acc.y ; in KPADCalibrateDPD() 393 kp->accXY_nrm_hori.y = vy / f1 ; in KPADCalibrateDPD() [all …]
|
| /RvlSDK-3.2.2/build/demos/kpaddemo/src/ |
| D | swing.c | 246 dir_nrm.y = 0.0f ; in init_sample() 251 last_acc.x = last_acc.y = last_acc.z = in init_sample() 252 acc_vec.x = acc_vec.y = acc_vec.z = in init_sample() 253 dir_vec.x = dir_vec.y = dir_vec.z = in init_sample() 285 if ( new_acc.y < -ACC_MAX || new_acc.y > ACC_MAX ) { in work_sample() 286 new_acc.y = ( acc_vec.y *= ACC_DAMP ) + last_acc.y ; in work_sample() 288 acc_vec.y = new_acc.y - last_acc.y ; in work_sample() 301 dir_vec.y *= DIR_VEC_DAMP ; in work_sample() 310 dir_vec.y += f1 * acc_vec.y ; in work_sample() 319 f1 = sqrtf( dir_vec.x * dir_vec.x + dir_vec.y * dir_vec.y + dir_vec.z * dir_vec.z ) ; in work_sample() [all …]
|
| D | sample.c | 87 u8 y ; // y-cursor position member 160 csr_y = edit_data[ csr_i ].y ; in init_sample() 197 fy = ( wy = ep->y - csr_y ) * vy ; // Preparation for inner product calculation in move_cursor() 221 csr_y = edit_data[ csr_i ].y ; in move_cursor() 380 pos.y = pointing_scale * sp->pos.y ; in draw_position() 384 vec.y = scale * sp->horizon.y ; in draw_position() 385 draw_line( pos.x-vec.x,pos.y-vec.y, pos.x+vec.x,pos.y+vec.y, yellow_clr, 3 ) ; in draw_position() 388 vec.x = scale * -sp->horizon.y ; // Lower direction vector in draw_position() 389 vec.y = scale * sp->horizon.x ; in draw_position() 390 draw_arrow( pos.x+vec.x,pos.y+vec.y, pos.x-vec.x,pos.y-vec.y, silver_clr, 3 ) ; in draw_position() [all …]
|
| /RvlSDK-3.2.2/build/libraries/kpad/src/ |
| D | KPAD.c | 374 if ( kp->center_org.y < 0.0f ) { in calc_dpd2pos_scale() 375 sy += kp->center_org.y ; in calc_dpd2pos_scale() 377 sy -= kp->center_org.y ; in calc_dpd2pos_scale() 399 kp->kobj_frame_min.y = -((f32)KPAD_DPD_RESO_WY / KPAD_DPD_RESO_WX) + kp_err_outside_frame ; in reset_kpad() 400 kp->kobj_frame_max.y = ((f32)KPAD_DPD_RESO_WY / KPAD_DPD_RESO_WX) - kp_err_outside_frame ; in reset_kpad() 422 sp->horizon.y = kp->acc_horizon.y = kp->obj_horizon.y = 0.0f ; in reset_kpad() 427 sp->acc_vertical.y = 0.0f ; in reset_kpad() 438 sp->acc.y = -1.0f ; in reset_kpad() 476 (*dst).y = src->y * (projection_height / 2.0f) * 1.2f ; in KPADGetProjectionPos() 500 vy = kp->hard_acc.y ; in KPADCalibrateDPD() [all …]
|
| /RvlSDK-3.2.2/build/libraries/mtx/src/ |
| D | quat.c | 87 r->y = p->y + q->y; in C_QUATAdd() 143 r->y = p->y - q->y; in C_QUATSubtract() 211 r->w = p->w*q->w - p->x*q->x - p->y*q->y - p->z*q->z; in C_QUATMultiply() 212 r->x = p->w*q->x + p->x*q->w + p->y*q->z - p->z*q->y; in C_QUATMultiply() 213 r->y = p->w*q->y + p->y*q->w + p->z*q->x - p->x*q->z; in C_QUATMultiply() 214 r->z = p->w*q->z + p->z*q->w + p->x*q->y - p->y*q->x; in C_QUATMultiply() 315 r->y = q->y * scale; in C_QUATScale() 365 return (q->x*p->x + q->y*p->y + q->z*p->z + q->w*p->w); in C_QUATDotProduct() 415 mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z) + (src->w * src->w); in C_QUATNormalize() 422 unit->y = src->y * mag; in C_QUATNormalize() [all …]
|
| D | vec.c | 120 ab->y = a->y + b->y; in C_VECAdd() 189 a_b->y = a->y - b->y; in C_VECSubtract() 258 dst->y = src->y * scale; in C_VECScale() 325 mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z); in C_VECNormalize() 332 unit->y = src->y * 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() 83 dst->y = vTmp.y; 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() 188 dstBase->y = vTmp.y; 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 | 81 vTmp.x = m[0][0]*src->x + m[0][1]*src->y + m[0][2]*src->z + m[0][3]; in C_MTX44MultVec() 82 vTmp.y = m[1][0]*src->x + m[1][1]*src->y + m[1][2]*src->z + m[1][3]; in C_MTX44MultVec() 83 vTmp.z = m[2][0]*src->x + m[2][1]*src->y + m[2][2]*src->z + m[2][3]; in C_MTX44MultVec() 84 w = m[3][0]*src->x + m[3][1]*src->y + m[3][2]*src->z + m[3][3]; in C_MTX44MultVec() 89 dst->y = vTmp.y * w; in C_MTX44MultVec() 170 vTmp.x = m[0][0]*srcBase->x + m[0][1]*srcBase->y + m[0][2]*srcBase->z + m[0][3]; in C_MTX44MultVecArray() 171 vTmp.y = m[1][0]*srcBase->x + m[1][1]*srcBase->y + m[1][2]*srcBase->z + m[1][3]; in C_MTX44MultVecArray() 172 vTmp.z = m[2][0]*srcBase->x + m[2][1]*srcBase->y + m[2][2]*srcBase->z + m[2][3]; in C_MTX44MultVecArray() 173 w = m[3][0]*srcBase->x + m[3][1]*srcBase->y + m[3][2]*srcBase->z + m[3][3]; in C_MTX44MultVecArray() 178 dstBase->y = vTmp.y * w; in C_MTX44MultVecArray() [all …]
|
| /RvlSDK-3.2.2/build/demos/kpadOlddemo/src/ |
| D | sample.c | 71 u8 y ; // y-cursor position member 122 csr_y = edit_data[ csr_i ].y ; in init_sample() 159 fy = ( wy = ep->y - csr_y ) * vy ; // Preparation for inner product calculation in move_cursor() 183 csr_y = edit_data[ csr_i ].y ; in move_cursor() 297 pos.y = pointing_scale * sp->pos.y ; in draw_position() 301 vec.y = scale * sp->horizon.y ; in draw_position() 302 draw_line( pos.x-vec.x,pos.y-vec.y, pos.x+vec.x,pos.y+vec.y, yellow_clr, 3 ) ; in draw_position() 305 vec.x = scale * -sp->horizon.y ; // Lower direction vector in draw_position() 306 vec.y = scale * sp->horizon.x ; in draw_position() 307 draw_arrow( pos.x+vec.x,pos.y+vec.y, pos.x-vec.x,pos.y-vec.y, silver_clr, 3 ) ; in draw_position() [all …]
|
| /RvlSDK-3.2.2/build/demos/videmo/src/ |
| D | cross-color.c | 117 int x, y, f; in YuvCircle() local 120 y = 0; in YuvCircle() 123 while (x >= y) { in YuvCircle() 124 YuvPset(posX + x, posY + y, width, xfb, luma, u, v); in YuvCircle() 125 YuvPset(posX - x, posY + y, width, xfb, luma, u, v); in YuvCircle() 126 YuvPset(posX + x, posY - y, width, xfb, luma, u, v); in YuvCircle() 127 YuvPset(posX - x, posY - y, width, xfb, luma, u, v); in YuvCircle() 128 YuvPset(posX + y, posY + x, width, xfb, luma, u, v); in YuvCircle() 129 YuvPset(posX - y, posY + x, width, xfb, luma, u, v); in YuvCircle() 130 YuvPset(posX + y, posY - x, width, xfb, luma, u, v); in YuvCircle() [all …]
|
| /RvlSDK-3.2.2/build/demos/gxdemo/src/Indirect/ |
| 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); 158 cube[0][i].y = v; in createCube() 161 cube[1][i].y = v; in createCube() 164 cube[2][i].y = v; in createCube() 167 cube[3][i].y = v; in createCube() 170 cube[4][i].y = 0.5f; in createCube() 173 cube[5][i].y = -0.5f; in createCube() 230 GXPosition3f32(d->x, d->y, d->z); in sendVertex() 360 GXInitSpecularDir(&light, lDir.x, lDir.y, lDir.z); in setLight() [all …]
|
| D | ind-bump-st.c | 74 f32 x, y, z; member 110 void updateDonut(Mtx cam, f32 r1, f32 r2, f32 x, f32 y, f32 z); 132 result.y = (R1 - (R2*cosf(angle2))) * sinf(angle1); in donutCoord() 168 GXPosition3f32(d->x, d->y, d->z); in sendVertex() 291 GXInitSpecularDir(&light, lDir.x, lDir.y, lDir.z); in setLight() 524 void updateDonut(Mtx cam, f32 r1, f32 r2, f32 x, f32 y, f32 z) in updateDonut() argument 533 MTXTrans(tempMtx, x, y, z); in updateDonut() 572 c.y = ((f32) 2.0f*j/TT) - 1.0f; in drawHemisphere() 575 c.ny = c.y / NRM_SCALE; in drawHemisphere() 576 c.nz = c.x*c.x + c.y*c.y; in drawHemisphere() [all …]
|
| /RvlSDK-3.2.2/build/demos/osdemo/src/ |
| D | fontdemo1.c | 37 static void DrawCell(int x, int y, int xChar, int yChar) in DrawCell() argument 41 s16 posTop = (s16) y; in DrawCell() 98 static s32 DrawChar(int x, int y, u16 code) in DrawChar() argument 125 DrawCell(x, y, xChar, yChar); in DrawChar() 130 static s32 DrawString(int x, int y, char* string) in DrawString() argument 143 DrawCell(x + cx, y, xChar, yChar); in DrawString() 226 int y; in main() local 275 for (y = 25; in main() 276 y < 25 + FontData->cellHeight * 16; in main() 277 y += FontData->cellHeight) in main() [all …]
|
| /RvlSDK-3.2.2/build/libraries/demo/src/ |
| D | DEMOPuts.c | 336 void DEMOPuts( s16 x, s16 y, s16 z, char* string ) in DEMOPuts() argument 371 GXPosition3s16( (s16)(i*8+x ), (s16)(y ), z ); in DEMOPuts() 373 GXPosition3s16( (s16)(i*8+x+8), (s16)(y ), z ); in DEMOPuts() 375 GXPosition3s16( (s16)(i*8+x+8), (s16)(y+8 ), z ); in DEMOPuts() 377 GXPosition3s16( (s16)(i*8+x ), (s16)(y+8 ), z ); in DEMOPuts() 385 if ( c == '\n' ) y += 8; in DEMOPuts() 402 void DEMOPrintf( s16 x, s16 y, s16 z, char* fmt, ... ) in DEMOPrintf() argument 416 DEMOPuts( x, y, z, buf ); in DEMOPrintf() 530 static void DrawFontChar(int x, int y, int z, int xChar, int yChar) in DrawFontChar() argument 534 s16 posTop = (s16) (y - (FontData->ascent * FontSize / FontData->cellWidth)); in DrawFontChar() [all …]
|
| /RvlSDK-3.2.2/build/demos/gxdemo/src/PixelProc/ |
| D | cmn-model.c | 148 f32 x, y, z, dir; member 190 if ( (int)(p->y) & 1 ) in cmModel1_Anim() 222 p->y -= 12.0f; in cmModel1_Anim() 224 if ( p->y < -48.0f ) p->y += 96.0f; in cmModel1_Anim() 296 MTXTrans( mmtx, obj1[i].x-12.0f, obj1[i].y-4.0f, obj1[i].z); in cmModel1_Draw() 328 s32 i, y, h; in cmModel2_Anim() local 343 y = ( obj2_ybase + 11 ) % 12; in cmModel2_Anim() 346 h = obj2_height[i][y] + ((signed)(rand() & 63)) - 32; in cmModel2_Anim() 359 y = ( obj2_ybase + 1 ) % 12; in cmModel2_Anim() 362 z1 = (float)( obj2_height[4][y ] + obj2_height[5][y ] ); in cmModel2_Anim() [all …]
|
| D | pix-sub.c | 254 DefaultBallPos[i].y = sinf(MTXDegToRad(deg)) * BALL_ORBIT; in DrawInit() 547 MTXTransApply(ms, mt, sc->ballPos[i].x, sc->ballPos[i].y, sc->ballPos[i].z); in DrawBalls() 582 MTXTransApply(ms, mt, sc->ballPos[i].x, sc->ballPos[i].y, zcenter); in DrawShadowVol() 601 s8 x, y, z; in DrawFloor() local 613 for ( y = 0 ; y < NUM_GRIDS ; ++y ) 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() 630 GXPosition3s8((s8)(x+1), y, z); in DrawFloor() [all …]
|
| /RvlSDK-3.2.2/build/demos/gxdemo/src/TexGen/ |
| D | tg-shadow.c | 469 s8 x, y, z; in DrawFloor() local 481 for ( y = 0 ; y < NUM_GRIDS ; ++y ) 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 …]
|
| /RvlSDK-3.2.2/build/demos/fntdemo/src/ |
| D | fntdemo1.c | 114 f32 x, f32 y, f32 z, in DrawChar() argument 120 f32 posTop = y; in DrawChar() 179 f32 x, f32 y, f32 z, in DrawString() argument 195 DrawChar(x + margin, y, z, &tex, scaleX, scaleY, lastImage); in DrawString() 244 f32 x, f32 y, f32 z ) in DrawSample() argument 262 drawW = DrawString(font, x, y, z, str0, scaleX, scaleY, 0.F, &lastImage); in DrawSample() 263 y += metrics.leading * scaleY; in DrawSample() 264 drawW = DrawString(font, x, y, z, str1, scaleX, scaleY, 0.F, &lastImage); in DrawSample() 265 y += metrics.leading * scaleY; in DrawSample() 266 drawW = DrawString(font, x, y, z, str2, scaleX, scaleY, 0.F, &lastImage); in DrawSample() [all …]
|