Home
last modified time | relevance | path

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

1234

/CafeSDK-2.12.13/system/src/lib/demo/headers/cafe/demo/
DdemoCommon.h40 #define DEMORoundUp256B(x) (((u32)(x) + 256 - 1) & ~(256 - 1)) argument
41 #define DEMORoundUp32B(x) (((u32)(x) + 32 - 1) & ~(32 - 1)) argument
42 #define DEMORoundUp4B(x) (((u32)(x) + 4 - 1) & ~(4 - 1)) argument
44 #define DEMORoundUpForIO(x) (((u32)(x) + PPC_IO_BUFFER_ALIGN - 1) & ~(PPC_IO_BUFFER_ALIGN - 1)) argument
DdemoSystem.h24 #define DEMORoundUp256B(x) (((u32)(x) + 256 - 1) & ~(256 - 1)) argument
25 #define DEMORoundUp32B(x) (((u32)(x) + 32 - 1) & ~(32 - 1)) argument
26 #define DEMORoundUp4B(x) (((u32)(x) + 4 - 1) & ~(4 - 1)) argument
28 #define DEMORoundUpForIO(x) (((u32)(x) + PPC_IO_BUFFER_ALIGN - 1) & ~(PPC_IO_BUFFER_ALIGN - 1)) argument
DdemoGfxTypes.h31 struct{ f32 x, y, z, w;} v; member
43 struct{ f32 x, y, z;} v; member
55 struct{ f32 x, y;} v; member
67 struct{ f32 x;} v; member
79 struct{ u32 x, y, z, w;} v; member
91 struct{ u32 x, y, z;} v; member
103 struct{ u32 x, y;} v; member
115 struct{ u32 x;} v; member
127 struct{ s32 x, y, z, w;} v; member
139 struct{ s32 x, y, z;} v; member
[all …]
Ddemowin.h51 float GetX() {return this->x;} in GetX()
59 float GetLeft() {return this->x - GetWidth() / 2;} in GetLeft()
60 float GetRight() {return this->x + GetWidth() / 2;} in GetRight()
107 float& x; member
168 …isible(true), position(_position), size(_size), x(position.x), y(position.y), z(position.z), width… in window()
171 …ble), position(copy.position), size(copy.size), x(position.x), y(position.y), z(position.z), width… in MenuItem()
182 …window->manager->peripheral->DrawText(text, CVec3(window->GetX() + position.x, window->GetY() + po… in DrawText()
184 …->manager->peripheral->DrawTextCenter(text, CVec3(window->GetX() + position.x, window->GetY() + po… in DrawTextCenter()
186 …w->manager->peripheral->DrawTextRight(text, CVec3(window->GetX() + position.x, window->GetY() + po… in DrawTextRight()
188 …anager->peripheral->DrawMultiLineText(text, CVec3(window->GetX() + position.x, window->GetY() + po… in DrawMultiLineText()
[all …]
/CafeSDK-2.12.13/system/include/cafe/demo/
DdemoCommon.h40 #define DEMORoundUp256B(x) (((u32)(x) + 256 - 1) & ~(256 - 1)) argument
41 #define DEMORoundUp32B(x) (((u32)(x) + 32 - 1) & ~(32 - 1)) argument
42 #define DEMORoundUp4B(x) (((u32)(x) + 4 - 1) & ~(4 - 1)) argument
44 #define DEMORoundUpForIO(x) (((u32)(x) + PPC_IO_BUFFER_ALIGN - 1) & ~(PPC_IO_BUFFER_ALIGN - 1)) argument
DdemoSystem.h24 #define DEMORoundUp256B(x) (((u32)(x) + 256 - 1) & ~(256 - 1)) argument
25 #define DEMORoundUp32B(x) (((u32)(x) + 32 - 1) & ~(32 - 1)) argument
26 #define DEMORoundUp4B(x) (((u32)(x) + 4 - 1) & ~(4 - 1)) argument
28 #define DEMORoundUpForIO(x) (((u32)(x) + PPC_IO_BUFFER_ALIGN - 1) & ~(PPC_IO_BUFFER_ALIGN - 1)) argument
DdemoGfxTypes.h31 struct{ f32 x, y, z, w;} v; member
43 struct{ f32 x, y, z;} v; member
55 struct{ f32 x, y;} v; member
67 struct{ f32 x;} v; member
79 struct{ u32 x, y, z, w;} v; member
91 struct{ u32 x, y, z;} v; member
103 struct{ u32 x, y;} v; member
115 struct{ u32 x;} v; member
127 struct{ s32 x, y, z, w;} v; member
139 struct{ s32 x, y, z;} v; member
[all …]
Ddemowin.h51 float GetX() {return this->x;} in GetX()
59 float GetLeft() {return this->x - GetWidth() / 2;} in GetLeft()
60 float GetRight() {return this->x + GetWidth() / 2;} in GetRight()
107 float& x; member
168 …isible(true), position(_position), size(_size), x(position.x), y(position.y), z(position.z), width… in window()
171 …ble), position(copy.position), size(copy.size), x(position.x), y(position.y), z(position.z), width… in MenuItem()
182 …window->manager->peripheral->DrawText(text, CVec3(window->GetX() + position.x, window->GetY() + po… in DrawText()
184 …->manager->peripheral->DrawTextCenter(text, CVec3(window->GetX() + position.x, window->GetY() + po… in DrawTextCenter()
186 …w->manager->peripheral->DrawTextRight(text, CVec3(window->GetX() + position.x, window->GetY() + po… in DrawTextRight()
188 …anager->peripheral->DrawMultiLineText(text, CVec3(window->GetX() + position.x, window->GetY() + po… in DrawMultiLineText()
[all …]
/CafeSDK-2.12.13/system/include/cafe/pads/wpad/
DwpadBulk.h33 #define WPAD_IS_BULK_DEVICE(x) ( x == WPAD_DEV_BULK_01 \ argument
34 || x == WPAD_DEV_BULK_02 \
35 || x == WPAD_DEV_BULK_03 \
36 || x == WPAD_DEV_BULK_04 \
37 || x == WPAD_DEV_BULK_05 \
38 || x == WPAD_DEV_BULK_06 \
39 || x == WPAD_DEV_BULK_07 \
40 || x == WPAD_DEV_BULK_08 )
/CafeSDK-2.12.13/system/include/cafe/gx2/
Dgx2rCpp.h22 …GX2RResourceFlags operator |(GX2RResourceFlags x, GX2RResourceFlags y) { return (GX2RResourceFlags…
23 …GX2RResourceFlags operator |(GX2RResourceFlags x, s32 y) { return (GX2RResourceFlags…
24 …INLINE GX2RResourceFlags operator |(s32 x, GX2RResourceFlags y) { return (GX2RResour…
26 … GX2RDebugOptions operator |(GX2RDebugOptions x, GX2RDebugOptions y) { return (GX2RDebugOptions…
Dgx2Misc.h60 #define GX2_GET_COMP_SEL(x,y,z,w) ((((x)&0xff)<<24)|(((y)&0xff)<<16)|(((z)&0xff)<<8)|((w)&0xff)) argument
104 #define GX2_SWAP_8_IN_32(x) \ argument
105 …( (((x) >> 24) & 0xff) | (((x) >> 8) & 0xff00) | (((x) << 8) & 0xff0000) | (((x) << 24) & 0xff0000…
111 #define GX2_SWAP_8_IN_16(x) \ argument
112 ( ((x) >> 8) | ((x) << 8) )
118 #define GX2_SWAP_16_IN_32(x) \ argument
119 ( ((x) >> 16) | ((x) << 16) )
124 #define GX2_SWAP_8_IN_64(x) \ argument
125 …((((x)>>56)&(0xffull<< 0))|(((x)>>40)&(0xffull<< 8))|(((x)>>24)&(0xffull<<16))|(((x)>> 8)&(0xffull…
126 …(((x)<< 8)&(0xffull<<32))|(((x)<<24)&(0xffull<<40))|(((x)<<40)&(0xffull<<48))|(((x)<<56)&(0xffull<…
/CafeSDK-2.12.13/system/src/lib/demo/demowin/
Ddemowin_slider_bar.cpp23 …pItem->minus = HeldButton::Add(HeldButton(item.window, CVec3(item.x - (item.width - item.height) /… in Add()
24 …pItem->plus = HeldButton::Add(HeldButton(item.window, CVec3(item.x + (item.width - item.height) /… in Add()
76 float x = CursorX() - this->oldX; in Update() local
77 float t = x / (this->width - this->height * 3); in Update()
106 float x = t * (this->width - this->height * 3); in Update() local
109 if (CursorColliding(this->x + x, this->y, this->height, this->height)) in Update()
115 this->oldX = CursorX() - x; in Update()
144 this->minus->x = this->x - (this->width - this->height) / 2; in Draw()
147 this->plus->x = this->x + (this->width - this->height) / 2; in Draw()
156 float x = t * (this->width - this->height * 3); in Draw() local
[all …]
Ddemowin_slider_bar_float.cpp23 …pItem->minus = HeldButton::Add(HeldButton(item.window, CVec3(item.x - (item.width - item.height) /… in Add()
24 …pItem->plus = HeldButton::Add(HeldButton(item.window, CVec3(item.x + (item.width - item.height) /… in Add()
76 float x = CursorX() - this->oldX; in Update() local
77 float t = x / (this->width - this->height * 3); in Update()
106 float x = t * (this->width - this->height * 3); in Update() local
109 if (CursorColliding(this->x + x, this->y, this->height, this->height)) in Update()
115 this->oldX = CursorX() - x; in Update()
144 this->minus->x = this->x - (this->width - this->height) / 2; in Draw()
147 this->plus->x = this->x + (this->width - this->height) / 2; in Draw()
156 float x = t * (this->width - this->height * 3); in Draw() local
[all …]
Ddemowin_combo_box.cpp40 if (CursorColliding(this->x, this->y, this->width, this->height)) in CursorOver()
56 …if (CursorColliding(this->x, this->y + this->height / 2 + this->height * visibleCount / 2, this->w… in CursorOver()
61 …if (CursorColliding(this->x, this->y - this->height / 2 - this->height * visibleCount / 2, this->w… in CursorOver()
86 this->bar.x = this->x + size.x / 2 - SCROLLBAR_WIDTH / 2; in Update()
170 CursorX() = window->GetX() + this->x - widthOffset; in Update()
175 …if (CursorColliding(this->x - widthOffset, this->y - (this->height / 2 + this->height * visibleCou… in Update()
204 …if (CursorColliding(this->x, this->y - (this->height / 2 + this->height * visibleCount / 2) * flip… in Update()
230 if (CursorColliding(this->x, this->y, this->width, this->height)) in Update()
246 DrawBox(CVec3(this->x, this->y, this->z + 0.003), size, CVec4(0.13, 0.13, 0.13)); in Draw()
247 …DrawBox(CVec3(this->x + this->width / 2 - arrowWidth / 2, this->y, this->z + 0.0035), CVec2(arrowW… in Draw()
[all …]
Ddemowin_double_combo_box.cpp32 if (CursorColliding(this->x, this->y, this->width, this->height)) in CursorOver()
50 …if (CursorColliding(this->x, this->y - (this->height / 2 + this->height * visibleCount / 2) * flip… in CursorOver()
66 …if (CursorColliding(this->x + this->width / 2, this->y + this->height / 2 - this->height * visible… in CursorOver()
133 this->bar2.x = this->x + size.x * 3 / 4 - SCROLLBAR_WIDTH / 2; in Update()
198 CursorX() = window->GetX() + this->x + this->width / 2 - widthOffset; in Update()
202 …if (CursorColliding(this->x + this->width / 2 - widthOffset, this->y + this->height / 2 - this->he… in Update()
231 …if (CursorColliding(this->x + this->width / 2, this->y + this->height / 2 - this->height * visible… in Update()
239 this->bar1.x = this->x + size.x / 4 - SCROLLBAR_WIDTH / 2; in Update()
313 CursorX() = window->GetX() + this->x; in Update()
317 …if (CursorColliding(this->x - widthOffset, this->y - (this->height / 2 + this->height * visibleCou… in Update()
[all …]
Ddemowin_tab_window.cpp33 float x = -GetWidth() / 2 + GetWidth() / tabWindowList.size() / 2; in Draw() local
45 … menu->DrawBox(CVec3(x, y, 0.99), CVec2(buttonWidth, buttonHeight), CVec4(0.2, 0.2, 0.2)); in Draw()
47 menu->DrawQuad(CVec3(x, y, 0.99), CVec2(buttonWidth, buttonHeight), CVec4(0, 0, 0, 0)); in Draw()
50 … menu->DrawBox(CVec3(x, y, 0.9901), CVec2(buttonWidth, buttonHeight), CVec4(0.3, 0.3, 0.3)); in Draw()
52 …menu->DrawTextCenter(tabWindowList[i]->name, CVec3(x, y, 0.9902), CVec2(buttonWidth, textHeight), … in Draw()
54 x += spacing; in Draw()
72 scrollBar->x = (this->GetWidth() - SCROLLBAR_WIDTH) / 2; in PreUpdate()
116 scrollBar->x = (this->GetWidth() - SCROLLBAR_WIDTH) / 2; in PreDraw()
/CafeSDK-2.12.13/system/include/
Dtypes.h48 #define ALIGNVAR(x) PRAGMA( alignvar(x) ) argument
61 #define SET_STRUCT_ALIGN(x) PRAGMA(ghs struct_min_alignment(x)) argument
62 #define ATTRIB_STRUCT_ALIGN(x) argument
107 #define SET_STRUCT_ALIGN(x) argument
108 #define ATTRIB_STRUCT_ALIGN(x) __attribute((aligned (x))) argument
129 #define SET_STRUCT_ALIGN(x) argument
130 #define ATTRIB_STRUCT_ALIGN(x) __attribute((aligned (x))) argument
148 #define SET_STRUCT_ALIGN(x) argument
149 #define ATTRIB_STRUCT_ALIGN(x) argument
/CafeSDK-2.12.13/system/src/lib/mtx/
DmtxVec.c61 ab->x = a->x + b->x; in C_VECAdd()
133 a_b->x = a->x - b->x; in C_VECSubtract()
204 dst->x = src->x * scale; in C_VECScale()
270 mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z); in C_VECNormalize()
276 unit->x = src->x * mag; in C_VECNormalize()
369 sqmag = (v->x * v->x) + (v->y * v->y) + (v->z * v->z); in C_VECSquareMag()
509 dot = (a->x * b->x) + (a->y * b->y) + (a->z * b->z); in C_VECDotProduct()
583 vTmp.x = ( a->y * b->z ) - ( a->z * b->y ); in C_VECCrossProduct()
584 vTmp.y = ( a->z * b->x ) - ( a->x * b->z ); in C_VECCrossProduct()
585 vTmp.z = ( a->x * b->y ) - ( a->y * b->x ); in C_VECCrossProduct()
[all …]
Dmtx44Vec.c57 vTmp.x = m[0][0]*src->x + m[0][1]*src->y + m[0][2]*src->z + m[0][3]; in C_MTX44MultVec()
58 vTmp.y = m[1][0]*src->x + m[1][1]*src->y + m[1][2]*src->z + m[1][3]; in C_MTX44MultVec()
59 vTmp.z = m[2][0]*src->x + m[2][1]*src->y + m[2][2]*src->z + m[2][3]; in C_MTX44MultVec()
60 w = m[3][0]*src->x + m[3][1]*src->y + m[3][2]*src->z + m[3][3]; in C_MTX44MultVec()
64 dst->x = vTmp.x * w; in C_MTX44MultVec()
222 vTmp.x = m[0][0]*srcBase->x + m[0][1]*srcBase->y + m[0][2]*srcBase->z + m[0][3]; in C_MTX44MultVecArray()
223 vTmp.y = m[1][0]*srcBase->x + m[1][1]*srcBase->y + m[1][2]*srcBase->z + m[1][3]; in C_MTX44MultVecArray()
224 vTmp.z = m[2][0]*srcBase->x + m[2][1]*srcBase->y + m[2][2]*srcBase->z + m[2][3]; in C_MTX44MultVecArray()
225 w = m[3][0]*srcBase->x + m[3][1]*srcBase->y + m[3][2]*srcBase->z + m[3][3]; in C_MTX44MultVecArray()
229 dstBase->x = vTmp.x * w; in C_MTX44MultVecArray()
[all …]
DmtxQuat.c54 r->x = p->x + q->x; in C_QUATAdd()
128 r->x = p->x - q->x; in C_QUATSubtract()
216 r->w = p->w*q->w - p->x*q->x - p->y*q->y - p->z*q->z; in C_QUATMultiply()
217 r->x = p->w*q->x + p->x*q->w + p->y*q->z - p->z*q->y; in C_QUATMultiply()
218 r->y = p->w*q->y + p->y*q->w + p->z*q->x - p->x*q->z; in C_QUATMultiply()
219 r->z = p->w*q->z + p->z*q->w + p->x*q->y - p->y*q->x; in C_QUATMultiply()
361 r->x = q->x * scale; in C_QUATScale()
425 return (q->x*p->x + q->y*p->y + q->z*p->z + q->w*p->w); in C_QUATDotProduct()
492 mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z) + (src->w * src->w); in C_QUATNormalize()
498 unit->x = src->x * mag; in C_QUATNormalize()
[all …]
/CafeSDK-2.12.13/system/bin/tool/
Ddeploytitle.sh255 let x=var-beg
258 if [ $l -le $x ];then
302 x=
342 x="$CAFE_ROOT/mstr"
343 if [ ! -d "$x" ];then
344 mkdir "$x"
350 x="$x/$APP"
352 makecfmaster.sh -r "$FIL" -o "$x"
360 x="$x".wumad
361 if [ ! -f "$x" ];then
[all …]
/CafeSDK-2.12.13/system/src/lib/gfd/headers/cafe/gfd/
DgfdInterface.h29 #define GFD_SWAP_8_IN_16(x) (((x)>>8)|((x)<<8)) argument
32 #define GFD_SWAP_8_IN_32(x) ((((x)>>24)&0xff)|(((x)>>8)&0xff00)|(((x)<<8)&0xff0000)|(((x)<<24)&0xff… argument
/CafeSDK-2.12.13/system/include/cafe/gfd/
DgfdInterface.h29 #define GFD_SWAP_8_IN_16(x) (((x)>>8)|((x)<<8)) argument
32 #define GFD_SWAP_8_IN_32(x) ((((x)>>24)&0xff)|(((x)>>8)&0xff00)|(((x)<<8)&0xff0000)|(((x)<<24)&0xff… argument
/CafeSDK-2.12.13/system/include/cafe/demo/demowin/
Ddemowin_peripheral.h62 …bool CursorColliding(Window* window, float x, float y, float width, float height, bool ignoreBound…
67 x += window->GetX();
74 …return (CursorX() >= x - width / 2 && CursorX() <= x + width / 2 && CursorY() >= y - height / 2 &&…
78 bool CursorColliding(float x, float y, float width, float height) in CursorColliding()
80 …return (CursorX() >= x - width / 2 && CursorX() <= x + width / 2 && CursorY() >= y - height / 2 &&… in CursorColliding()
/CafeSDK-2.12.13/system/src/lib/demo/headers/cafe/demo/demowin/
Ddemowin_peripheral.h62 …bool CursorColliding(Window* window, float x, float y, float width, float height, bool ignoreBound…
67 x += window->GetX();
74 …return (CursorX() >= x - width / 2 && CursorX() <= x + width / 2 && CursorY() >= y - height / 2 &&…
78 bool CursorColliding(float x, float y, float width, float height) in CursorColliding()
80 …return (CursorX() >= x - width / 2 && CursorX() <= x + width / 2 && CursorY() >= y - height / 2 &&… in CursorColliding()

1234