Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 151) sorted by relevance

1234567

/RvlSDK-3.3/build/demos/wpaddemo/src/
Dmplus.c111 static void myPrint ( int x, int y, int z, char *fmt, ... );
434 static void myPrint( int x, int y, int z, char *fmt, ... ) in myPrint() argument
445 DEMORFPrintf((s16)x, (s16)y, (s16)z, "%s", string); in myPrint()
449 DEMOPrintf((s16)x, (s16)y, (s16)z, "%s", string); in myPrint()
607 s16 y = Y0_START; in renderStatus() local
612 myPrint(x, y, 0, "------------------------------"); y+=FONT_HEIGHT; in renderStatus()
613 myPrint(x, y, 0, "Status :"); y+=FONT_HEIGHT; in renderStatus()
614 myPrint(x, y, 0, "Type :"); y+=FONT_HEIGHT; in renderStatus()
615 myPrint(x, y, 0, "Err :"); y+=FONT_HEIGHT; in renderStatus()
616 myPrint(x, y, 0, "Buttons:"); y+=FONT_HEIGHT; in renderStatus()
[all …]
Ddummy_checker.c465 s16 y; in renderStatus() local
476 y = Y_START; in renderStatus()
478 DEMOPrintf(x, y, 0, "WPAD Demo -- Dummy checker"); in renderStatus()
479 y+=FONT_HEIGHT; in renderStatus()
480 y+=FONT_HEIGHT; in renderStatus()
481 DEMOPrintf(x, y, 0, "Status :"); y+=FONT_HEIGHT; in renderStatus()
482 DEMOPrintf(x, y, 0, "Type :"); y+=FONT_HEIGHT; in renderStatus()
483 DEMOPrintf(x, y, 0, "Buttons:"); y+=FONT_HEIGHT; in renderStatus()
484 DEMOPrintf(x, y, 0, "DPD0-xy:"); y+=FONT_HEIGHT; in renderStatus()
485 DEMOPrintf(x, y, 0, "DPD1-xy:"); y+=FONT_HEIGHT; in renderStatus()
[all …]
Dwpadsample.c1087 yDiff = (f32)(wpad->obj[0].y - wpad->obj[1].y); in getDistance()
1112 s16 y = Y_START; in renderScreen() local
1115 DEMOPrintf(x, y, 0, "WPAD Demo -- WPADSAMPLE"); in renderScreen()
1117 y+=FONT_HEIGHT*2; in renderScreen()
1121 DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y, 0, "Ch%d", i); in renderScreen()
1124 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "ADDR "); in renderScreen()
1125 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "TX-STAT "); in renderScreen()
1126 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "TYPE "); in renderScreen()
1127 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "FORMAT "); in renderScreen()
1128 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "RATE "); in renderScreen()
[all …]
Dsync.c108 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.3/build/libraries/wpad/src/
DWPADClamp.c347 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.3/build/demos/kpaddemo/src/
Dweight.c175 s16 y = 100 ; in renderStatus() local
190 DEMOPrintf( x, y, 0, "WBC is not connected." ) ; in renderStatus()
194 DEMOPrintf( x, y += FONT_HEIGHT, 0, "WBC is not registered." ) ; in renderStatus()
195 DEMOPrintf( x, y += FONT_HEIGHT, 0, "Please regist WBC with SYNC button." ) ; in renderStatus()
208 y = 10 ; in renderStatus()
210 DEMOPrintf( x, y+=FONT_HEIGHT, 0, "+--------------+" ) ; in renderStatus()
211 DEMOPrintf( x, y+=FONT_HEIGHT, 0, "| Weight |" ) ; in renderStatus()
212 DEMOPrintf( x, y+=FONT_HEIGHT, 0, "+--------------+" ) ; in renderStatus()
213 … DEMOPrintf( x, y+=FONT_HEIGHT, 0, "Wt : %3.1f[kg]", ( kpads[0].ex_status.bl.weight[0] \ in renderStatus()
217 y+=FONT_HEIGHT ; in renderStatus()
[all …]
Dswing.c246 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 …]
Dmpls.c71 u8 y ; // Y-cursor position member
195 csr_y = edit_data[ csr_i ].y ; in init_sample()
225 fy = ( wy = ep->y - csr_y ) * vy ; // Prepare to calculate dot product in move_cursor()
249 csr_y = edit_data[ csr_i ].y ; in move_cursor()
447 pos.y = pointing_scale * sp->pos.y ; in draw_position()
451 vec.y = scale * sp->horizon.y ; in draw_position()
452 draw_line( pos.x-vec.x,pos.y-vec.y, pos.x+vec.x,pos.y+vec.y, yellow_clr, 3 ) ; in draw_position()
455 vec.x = scale * -sp->horizon.y ; // Vector pointing down in draw_position()
456 vec.y = scale * sp->horizon.x ; in draw_position()
457 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 …]
Dsample.c97 u8 y ; // Y-cursor position member
184 csr_y = edit_data[ csr_i ].y ; in init_sample()
226 fy = ( wy = ep->y - csr_y ) * vy ; // Prepare to calculate dot product in move_cursor()
250 csr_y = edit_data[ csr_i ].y ; in move_cursor()
455 pos.y = pointing_scale * sp->pos.y ; in draw_position()
459 vec.y = scale * sp->horizon.y ; in draw_position()
460 draw_line( pos.x-vec.x,pos.y-vec.y, pos.x+vec.x,pos.y+vec.y, yellow_clr, 3 ) ; in draw_position()
463 vec.x = scale * -sp->horizon.y ; // Vector pointing down in draw_position()
464 vec.y = scale * sp->horizon.x ; in draw_position()
465 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.3/build/libraries/pad/src/
DPadclamp.c155 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.3/include/revolution/gx/
DGXEmVert.h47 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 …]
DGXVert.h191 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.3/build/libraries/mtx/src/
Dquat.c87 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 …]
Dvec.c120 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 …]
Dmtxvec.c77 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 …]
Dmtx44vec.c81 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.3/build/demos/hbmdemo/rsodemo/src/
Drsomodule.c350 pHbmInfo->adjust.y = 1.0f; in InitHomeButtonInfo()
364 pHbmInfo->adjust.y = 1.0f; in SetAdjustValue()
370 pHbmInfo->adjust.y = 1.0f; in SetAdjustValue()
432 pConData->wiiCon[i].pos.y = 0.f; in InitControllerData()
447 f32 x,y; in calcAnalogCursorPos() local
449 y = ( stickY / scStickMoveCoe ); in calcAnalogCursorPos()
451 y = AbsClamp( y, 1.0f ); in calcAnalogCursorPos()
452 if( x == 0.0f && y == 0.0f ) return FALSE; in calcAnalogCursorPos()
454 pos->y = AbsClamp( pos->y - y, 1.0f ); in calcAnalogCursorPos()
467 case KPAD_CL_BUTTON_UP: pos->y-=spd; break; in calcDigitalCursorPos()
[all …]
Drsodemo.cpp622 posAdjust.y = 1.0f; in main()
628 posAdjust.y = 1.0f; in main()
655 pos[i].y = kpad_status[i].pos.y; in main()
657 pos[i].y *= pRm->xfbHeight * 0.5f; in main()
659 pos[i].y *= posAdjust.y; in main()
663 GXPosition2f32( -10 + pos[i].x, -10 - pos[i].y ); in main()
665 GXPosition2f32( -10 + pos[i].x, 10 - pos[i].y ); in main()
667 GXPosition2f32( 10 + pos[i].x, 10 - pos[i].y ); in main()
669 GXPosition2f32( 10 + pos[i].x, -10 - pos[i].y ); in main()
976 f32 x,y; in calcAnalogCursorPos() local
[all …]
/RvlSDK-3.3/build/demos/videmo/src/
Dcross-color.c117 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.3/build/demos/hbmdemo/hbm/src/
Dhomebutton.cpp469 pHbmInfo->adjust.y = 1.0f; in InitHomeButtonInfo()
511 pConData->wiiCon[i].pos.y = 0.f; in InitControllerData()
525 f32 x,y; in calcAnalogCursorPos() local
527 y = ( stickY / scStickMoveCoe ); in calcAnalogCursorPos()
529 y = AbsClamp( y, 1.0f ); in calcAnalogCursorPos()
530 if( x == 0.0f && y == 0.0f ) return FALSE; in calcAnalogCursorPos()
532 pos->y = AbsClamp( pos->y - y, 1.0f ); in calcAnalogCursorPos()
545 case KPAD_CL_BUTTON_UP: pos->y-=spd; break; in calcDigitalCursorPos()
547 case KPAD_CL_BUTTON_DOWN: pos->y+=spd; break; in calcDigitalCursorPos()
549 case KPAD_CL_BUTTON_UP |KPAD_CL_BUTTON_LEFT: pos->y-=spd2; pos->x-=spd2; break; in calcDigitalCursorPos()
[all …]
/RvlSDK-3.3/build/demos/gxdemo/src/Indirect/
Dind-bump-xyz.c72 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 …]
/RvlSDK-3.3/build/demos/hbmdemo/shareddemo/src/
Dshared.cpp586 pHbmInfo->adjust.y = 1.0f; in InitHomeButtonInfo()
619 pConData->wiiCon[i].pos.y = 0.f; in InitControllerData()
633 f32 x,y; in calcAnalogCursorPos() local
635 y = ( stickY / scStickMoveCoe ); in calcAnalogCursorPos()
637 y = AbsClamp( y, 1.0f ); in calcAnalogCursorPos()
638 if( x == 0.0f && y == 0.0f ) return FALSE; in calcAnalogCursorPos()
640 pos->y = AbsClamp( pos->y - y, 1.0f ); in calcAnalogCursorPos()
653 case KPAD_CL_BUTTON_UP: pos->y-=spd; break; in calcDigitalCursorPos()
655 case KPAD_CL_BUTTON_DOWN: pos->y+=spd; break; in calcDigitalCursorPos()
657 case KPAD_CL_BUTTON_UP |KPAD_CL_BUTTON_LEFT: pos->y-=spd2; pos->x-=spd2; break; in calcDigitalCursorPos()
[all …]
/RvlSDK-3.3/build/demos/osdemo/src/
Dfontdemo1.c37 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.3/build/libraries/demo/src/
DDEMOPuts.c342 void DEMOPuts( s16 x, s16 y, s16 z, char* string ) in DEMOPuts() argument
377 GXPosition3s16( (s16)(i*8+x ), (s16)(y ), z ); in DEMOPuts()
379 GXPosition3s16( (s16)(i*8+x+8), (s16)(y ), z ); in DEMOPuts()
381 GXPosition3s16( (s16)(i*8+x+8), (s16)(y+8 ), z ); in DEMOPuts()
383 GXPosition3s16( (s16)(i*8+x ), (s16)(y+8 ), z ); in DEMOPuts()
391 if ( c == '\n' ) y += 8; in DEMOPuts()
408 void DEMOPrintf( s16 x, s16 y, s16 z, char* fmt, ... ) in DEMOPrintf() argument
422 DEMOPuts( x, y, z, buf ); in DEMOPrintf()
536 static void DrawFontChar(int x, int y, int z, int xChar, int yChar) in DrawFontChar() argument
540 s16 posTop = (s16) (y - (FontData->ascent * FontSize / FontData->cellWidth)); in DrawFontChar()
[all …]
/RvlSDK-3.3/build/demos/gxdemo/src/PixelProc/
Dcmn-model.c148 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 …]

1234567