Home
last modified time | relevance | path

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

/RvlSDK-3.3/build/demos/hbmdemo/hbm/src/
Dhomebutton.cpp510 pConData->wiiCon[i].pos.x = 0.f; in InitControllerData()
511 pConData->wiiCon[i].pos.y = 0.f; in InitControllerData()
523 static int calcAnalogCursorPos( f32 stickX, f32 stickY, Vec2* pos ) in calcAnalogCursorPos() argument
531 pos->x = AbsClamp( pos->x + x, 1.0f ); in calcAnalogCursorPos()
532 pos->y = AbsClamp( pos->y - y, 1.0f ); in calcAnalogCursorPos()
537 static int calcDigitalCursorPos( u32 button, Vec2* pos ) in calcDigitalCursorPos() argument
545 case KPAD_CL_BUTTON_UP: pos->y-=spd; break; in calcDigitalCursorPos()
546 case KPAD_CL_BUTTON_LEFT: pos->x-=spd; break; in calcDigitalCursorPos()
547 case KPAD_CL_BUTTON_DOWN: pos->y+=spd; break; in calcDigitalCursorPos()
548 case KPAD_CL_BUTTON_RIGHT: pos->x+=spd; break; in calcDigitalCursorPos()
[all …]
/RvlSDK-3.3/build/demos/gxdemo/src/TexGen/
Dtg-emboss.c174 Point3d pos; // in world space member
243 myLight.pos.x = - myLight.dist * 1.0f / M_SQRT3; in myInitModel()
244 myLight.pos.y = - myLight.dist * 1.0f / M_SQRT3; in myInitModel()
245 myLight.pos.z = + myLight.dist * 1.0f / M_SQRT3; in myInitModel()
353 if ( pad->dirs & DEMO_STICK_LEFT ) myLight.pos.x -= 2.0f; in myAnimeModel()
354 if ( pad->dirs & DEMO_STICK_RIGHT ) myLight.pos.x += 2.0f; in myAnimeModel()
355 if ( pad->dirs & DEMO_STICK_UP ) myLight.pos.z += 2.0f; in myAnimeModel()
356 if ( pad->dirs & DEMO_STICK_DOWN ) myLight.pos.z -= 2.0f; in myAnimeModel()
358 r2 = myLight.pos.x * myLight.pos.x + myLight.pos.z * myLight.pos.z; in myAnimeModel()
364 myLight.pos.x *= scale; in myAnimeModel()
[all …]
/RvlSDK-3.3/build/demos/hbmdemo/rsodemo/src/
Drsomodule.c431 pConData->wiiCon[i].pos.x = 0.f; in InitControllerData()
432 pConData->wiiCon[i].pos.y = 0.f; in InitControllerData()
445 static int calcAnalogCursorPos( f32 stickX, f32 stickY, Vec2* pos ) in calcAnalogCursorPos() argument
453 pos->x = AbsClamp( pos->x + x, 1.0f ); in calcAnalogCursorPos()
454 pos->y = AbsClamp( pos->y - y, 1.0f ); in calcAnalogCursorPos()
459 static int calcDigitalCursorPos( u32 button, Vec2* pos ) in calcDigitalCursorPos() argument
467 case KPAD_CL_BUTTON_UP: pos->y-=spd; break; in calcDigitalCursorPos()
468 case KPAD_CL_BUTTON_LEFT: pos->x-=spd; break; in calcDigitalCursorPos()
469 case KPAD_CL_BUTTON_DOWN: pos->y+=spd; break; in calcDigitalCursorPos()
470 case KPAD_CL_BUTTON_RIGHT: pos->x+=spd; break; in calcDigitalCursorPos()
[all …]
Drsodemo.cpp241 static int calcDigitalCursorPos( u32 button, Vec2* pos );
449 Vec2 pos[WPAD_MAX_CONTROLLERS]; in main() local
654 pos[i].x = kpad_status[i].pos.x; in main()
655 pos[i].y = kpad_status[i].pos.y; in main()
656 pos[i].x *= pRm->fbWidth * 0.5f; in main()
657 pos[i].y *= pRm->xfbHeight * 0.5f; in main()
658 pos[i].x *= posAdjust.x; 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()
[all …]
/RvlSDK-3.3/build/demos/hbmdemo/shareddemo/src/
Dshared.cpp618 pConData->wiiCon[i].pos.x = 0.f; in InitControllerData()
619 pConData->wiiCon[i].pos.y = 0.f; in InitControllerData()
631 static int calcAnalogCursorPos( f32 stickX, f32 stickY, Vec2* pos ) in calcAnalogCursorPos() argument
639 pos->x = AbsClamp( pos->x + x, 1.0f ); in calcAnalogCursorPos()
640 pos->y = AbsClamp( pos->y - y, 1.0f ); in calcAnalogCursorPos()
645 static int calcDigitalCursorPos( u32 button, Vec2* pos ) in calcDigitalCursorPos() argument
653 case KPAD_CL_BUTTON_UP: pos->y-=spd; break; in calcDigitalCursorPos()
654 case KPAD_CL_BUTTON_LEFT: pos->x-=spd; break; in calcDigitalCursorPos()
655 case KPAD_CL_BUTTON_DOWN: pos->y+=spd; break; in calcDigitalCursorPos()
656 case KPAD_CL_BUTTON_RIGHT: pos->x+=spd; break; in calcDigitalCursorPos()
[all …]
/RvlSDK-3.3/build/demos/hbmdemo/networkmanual_jpeg/src/
Dnetworkmanual_jpeg.cpp634 pConData->wiiCon[i].pos.x = 0.f; in InitControllerData()
635 pConData->wiiCon[i].pos.y = 0.f; in InitControllerData()
647 static int calcAnalogCursorPos( f32 stickX, f32 stickY, Vec2* pos ) in calcAnalogCursorPos() argument
655 pos->x = AbsClamp( pos->x + x, 1.0f ); in calcAnalogCursorPos()
656 pos->y = AbsClamp( pos->y - y, 1.0f ); in calcAnalogCursorPos()
661 static int calcDigitalCursorPos( u32 button, Vec2* pos ) in calcDigitalCursorPos() argument
669 case KPAD_CL_BUTTON_UP: pos->y-=spd; break; in calcDigitalCursorPos()
670 case KPAD_CL_BUTTON_LEFT: pos->x-=spd; break; in calcDigitalCursorPos()
671 case KPAD_CL_BUTTON_DOWN: pos->y+=spd; break; in calcDigitalCursorPos()
672 case KPAD_CL_BUTTON_RIGHT: pos->x+=spd; break; in calcDigitalCursorPos()
[all …]
/RvlSDK-3.3/build/demos/hbmdemo/networkmanual_tpl/src/
Dnetworkmanual_tpl.cpp761 pConData->wiiCon[i].pos.x = 0.f; in InitControllerData()
762 pConData->wiiCon[i].pos.y = 0.f; in InitControllerData()
774 static int calcAnalogCursorPos( f32 stickX, f32 stickY, Vec2* pos ) in calcAnalogCursorPos() argument
782 pos->x = AbsClamp( pos->x + x, 1.0f ); in calcAnalogCursorPos()
783 pos->y = AbsClamp( pos->y - y, 1.0f ); in calcAnalogCursorPos()
788 static int calcDigitalCursorPos( u32 button, Vec2* pos ) in calcDigitalCursorPos() argument
796 case KPAD_CL_BUTTON_UP: pos->y-=spd; break; in calcDigitalCursorPos()
797 case KPAD_CL_BUTTON_LEFT: pos->x-=spd; break; in calcDigitalCursorPos()
798 case KPAD_CL_BUTTON_DOWN: pos->y+=spd; break; in calcDigitalCursorPos()
799 case KPAD_CL_BUTTON_RIGHT: pos->x+=spd; break; in calcDigitalCursorPos()
[all …]
/RvlSDK-3.3/build/demos/gxdemo/src/Lighting/
Dlit-spot.c69 Vec pos; member
263 sc->lightEnv.light[i].pos = DefaultLightPos[i]; in DrawInit()
393 lo[sc->cur].pos.x += (f32)( DEMOPadGetSubStickX(0) / 16 ); in AnimTick()
394 Clamp(lo[sc->cur].pos.x, -320, 320); in AnimTick()
395 lo[sc->cur].pos.y += (f32)( DEMOPadGetSubStickY(0) / 16 ); in AnimTick()
396 Clamp(lo[sc->cur].pos.y, -240, 240); in AnimTick()
399 lo[sc->cur].pos.z += (f32)( DEMOPadGetTriggerR(0) / 16 ) in AnimTick()
401 Clamp(lo[sc->cur].pos.z, 50, 600); in AnimTick()
644 len = fabsf(light->pos.z / ldir.z); in DrawLightMark()
645 ldir.x = light->pos.x + ldir.x * len; in DrawLightMark()
[all …]
/RvlSDK-3.3/build/demos/hio2demo/vc++/dual/
Ddual.cpp38 POSITION pos; in GetActiveView() local
43 pos = GetApp()->GetFirstDocTemplatePosition(); in GetActiveView()
44 if ( pos == NULL ) return NULL; in GetActiveView()
45 pDocTemplate = GetApp()->GetNextDocTemplate(pos); in GetActiveView()
48 pos = pDocTemplate->GetFirstDocPosition(); in GetActiveView()
49 if ( pos == NULL ) return NULL; in GetActiveView()
50 pDoc = static_cast<CDualDoc *>(pDocTemplate->GetNextDoc(pos)); in GetActiveView()
53 pos = pDoc->GetFirstViewPosition(); in GetActiveView()
54 if ( pos == NULL ) return NULL; in GetActiveView()
55 return static_cast<CDualView *>(pDoc->GetNextView(pos)); in GetActiveView()
[all …]
/RvlSDK-3.3/build/demos/hio2demo/vc++/multi/
Dmulti.cpp45 POSITION pos; in GetActiveView() local
50 pos = GetApp()->GetFirstDocTemplatePosition(); in GetActiveView()
51 if ( pos == NULL ) return NULL; in GetActiveView()
52 pDocTemplate = GetApp()->GetNextDocTemplate(pos); in GetActiveView()
55 pos = pDocTemplate->GetFirstDocPosition(); in GetActiveView()
56 if ( pos == NULL ) return NULL; in GetActiveView()
57 while ( pos != NULL ) in GetActiveView()
59 pDoc = static_cast<CMultiDoc *>(pDocTemplate->GetNextDoc(pos)); in GetActiveView()
232 POSITION pos = GetFirstDocTemplatePosition(); in CreateInfo() local
233 ASSERT(pos != NULL); in CreateInfo()
[all …]
/RvlSDK-3.3/build/demos/gxdemo/src/Framebuffer/
Dfrb-bound-box.c63 Vec pos; member
224 sc->cube[i].pos = CubeIniData[i*3]; in DrawInit()
277 if ( sc->cube[i].pos.cmp < - BOUNDARY ) \
279 if ( sc->cube[i].pos.cmp > BOUNDARY ) \
299 VECAdd(&sc->cube[i].pos, &sc->cube[i].vel, &sc->cube[i].pos); in AnimTick()
335 MTXTrans(mt, sc->cube[i].pos.x, sc->cube[i].pos.y, sc->cube[i].pos.z); in DrawCubes()
Dfrb-copy.c601 Vec pos; in DrawCubes() local
614 pos = CubePosArray[i]; in DrawCubes()
615 MTXTrans(mt, pos.x, pos.y, pos.z); in DrawCubes()
/RvlSDK-3.3/build/demos/kpaddemo/src/
Dsample.c434 Vec2 pos, vec ; in draw_position() local
454 pos.x = pointing_scale * sp->pos.x ; // Center coordinate in draw_position()
455 pos.y = pointing_scale * sp->pos.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()
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()
468 draw_point( pos.x,pos.y, black_clr, 11 ) ; in draw_position()
469 draw_point( pos.x,pos.y, cyan_clr, 9 ) ; in draw_position()
Dmpls.c428 Vec2 pos, vec ; in draw_position() local
446 pos.x = pointing_scale * sp->pos.x ; // Center coordinate in draw_position()
447 pos.y = pointing_scale * sp->pos.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()
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()
460 draw_point( pos.x,pos.y, black_clr, 11 ) ; in draw_position()
461 draw_point( pos.x,pos.y, cyan_clr, 9 ) ; in draw_position()
/RvlSDK-3.3/build/demos/gddemo/src/
Dgd-indtex-gc.c108 Vec pos; member
291 sc->cube[i].pos = CubeIniData[i*3]; in DrawInit()
355 if ( sc->cube[i].pos.cmp < - BOUNDARY ) \
357 if ( sc->cube[i].pos.cmp > BOUNDARY ) \
388 VECAdd(&sc->cube[i].pos, &sc->cube[i].vel, &sc->cube[i].pos); in AnimTick()
477 MTXTrans(mt, sc->cube[i].pos.x, sc->cube[i].pos.y, sc->cube[i].pos.z); in DrawModels()
/RvlSDK-3.3/build/libraries/tc/src/
DTCPaletteList.cpp326 u32 pos; in TCFindPalettePos() local
332 pos = 0; in TCFindPalettePos()
338 return pos; in TCFindPalettePos()
341 pos++; in TCFindPalettePos()
DTCImageList.cpp383 u32 pos; in TCFindImagePos() local
389 pos = 0; in TCFindImagePos()
395 return pos; in TCFindImagePos()
398 pos++; in TCFindImagePos()
DTCTPLToolbox.cpp862 u32 pos; in TCSetTplTextureValues() local
881 pos = TCFindImagePos( thisImage ); in TCSetTplTextureValues()
882 thisTex->tplImageOffset = imageDescOffset + ( pos * ImageDescSize); in TCSetTplTextureValues()
889 pos = TCFindPalettePos( thisPalette ); in TCSetTplTextureValues()
890 thisTex->tplPaletteOffset = paletteDescOffset + ( pos * PaletteDescSize); in TCSetTplTextureValues()
1068 u32 pos; in TCWriteTplPaletteBank() local
1082 pos = TCFindPalettePos( plPtr ); in TCWriteTplPaletteBank()
1084 if( plFlags[pos] ) in TCWriteTplPaletteBank()
1086 dataPtr = (void*)( tplPrev + plFlags[pos] ); in TCWriteTplPaletteBank()
1248 u32 pos; in TCWriteTplImageBank() local
[all …]
/RvlSDK-3.3/include/revolution/gd/
DGDGeometry.h116 #define CP_VCD_REG_LO(pmidx, t0midx, t1midx, t2midx, t3midx, t4midx, t5midx, t6midx, t7midx, pos, n… argument
126 (((unsigned long)(pos)) << CP_VCD_REG_LO_POS_SHIFT) | \
131 #define CP_VCD_REG_LO_PS(pmidx, t76543210midx, pos, nrm, col0, col1) \ argument
134 (((unsigned long)(pos)) << CP_VCD_REG_LO_POS_SHIFT) | \
/RvlSDK-3.3/include/revolution/
Dnand.h282 u32 *pos; member
350 s32 NANDTell (NANDFileInfo *info, u32 *pos);
351 s32 NANDTellAsync (NANDFileInfo *info, u32 *pos, NANDCallback cb, NANDCommandBlock *block);
Dkpad.h172 Vec2 pos ; member
/RvlSDK-3.3/build/demos/reldemo/src/
Da.cpp133 const Vec pos = {0.0f, 0.0f, -10.0f}; in MainA() local
/RvlSDK-3.3/include/revolution/os/
DOSFont.h133 char* OSGetFontTexel ( const char* string, void* image, s32 pos, s32 stride, s32* width );
/RvlSDK-3.3/include/revolution/hbm/
DHBMBase.h98 Vec2 pos; member
/RvlSDK-3.3/vcmv/src/
Dvcmv_test.c1922 VCMV_HBMControllerData.wiiCon[nI].pos.x *= 1.3333; in MyReadControllers()
1923 kps->pos.x *= 1.3333; in MyReadControllers()
2276 f32 rX = VCMV_HBMControllerData.wiiCon[nI].pos.x * 0.5f * nHbmEfbWidth; in DrawBoxCursors()
2277 f32 rY = VCMV_HBMControllerData.wiiCon[nI].pos.y * 0.5f * HBM_EFB_HEIGHT; in DrawBoxCursors()