Home
last modified time | relevance | path

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

12

/RvlSDK-3.2/build/libraries/mtx/src/
Dmtx44.c110 void C_MTXFrustum ( Mtx44 m, f32 t, f32 b, f32 l, f32 r, f32 n, f32 f ) in C_MTXFrustum() argument
115 ASSERTMSG( (m != 0), MTX_FRUSTUM_1 ); in C_MTXFrustum()
124 m[0][0] = (2*n) * tmp; in C_MTXFrustum()
125 m[0][1] = 0.0f; in C_MTXFrustum()
126 m[0][2] = (r + l) * tmp; in C_MTXFrustum()
127 m[0][3] = 0.0f; in C_MTXFrustum()
130 m[1][0] = 0.0f; in C_MTXFrustum()
131 m[1][1] = (2*n) * tmp; in C_MTXFrustum()
132 m[1][2] = (t + b) * tmp; in C_MTXFrustum()
133 m[1][3] = 0.0f; in C_MTXFrustum()
[all …]
Dmtxvec.c68 void C_MTXMultVec ( const Mtx m, const Vec *src, Vec *dst ) in C_MTXMultVec() argument
72 ASSERTMSG( (m != 0), MTX_MULTVEC_1 ); in C_MTXMultVec()
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()
95 const register Mtx m, in PSMTXMultVec() argument
105 psq_l fp2, 0(m), 0, 0 in PSMTXMultVec()
111 psq_l fp3, 8(m), 0, 0 in PSMTXMultVec()
115 psq_l fp8, 16(m), 0, 0 in PSMTXMultVec()
119 psq_l fp9, 24(m), 0, 0 in PSMTXMultVec()
[all …]
Dmtx.c200 void C_MTXIdentity ( Mtx m ) in C_MTXIdentity() argument
203 ASSERTMSG( (m != 0), MTX_IDENTITY_1 ); in C_MTXIdentity()
206 m[0][0] = 1.0f; m[0][1] = 0.0f; m[0][2] = 0.0f; m[0][3] = 0.0f; in C_MTXIdentity()
208 m[1][0] = 0.0f; m[1][1] = 1.0f; m[1][2] = 0.0f; m[1][3] = 0.0f; in C_MTXIdentity()
210 m[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = 1.0f; m[2][3] = 0.0f; in C_MTXIdentity()
223 register Mtx m // r3 in PSMTXIdentity() argument
233 psq_st c_zero, 8(m), 0, 0 // m[0][2], m[0][3] in PSMTXIdentity()
235 psq_st c_zero, 24(m), 0, 0 // m[1][2], m[1][3] in PSMTXIdentity()
237 psq_st c_zero, 32(m), 0, 0 // m[2][0], m[2][1] in PSMTXIdentity()
238 psq_st c_01, 16(m), 0, 0 // m[1][0], m[1][1] in PSMTXIdentity()
[all …]
Dmtx44vec.c71 void C_MTX44MultVec ( const Mtx44 m, const Vec *src, Vec *dst ) in C_MTX44MultVec() argument
76 ASSERTMSG( (m != 0), MTX44_MULTVEC_1 ); in C_MTX44MultVec()
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()
100 const register Mtx44 m, in PSMTX44MultVec() argument
107 psq_l fp2, 48(m), 0, 0; in PSMTX44MultVec()
110 psq_l fp3, 56(m), 0, 0; in PSMTX44MultVec()
114 psq_l fp4, 0(m), 0, 0; in PSMTX44MultVec()
[all …]
Dmtxstack.c106 MtxPtr MTXPush ( MtxStack *sPtr, const Mtx m ) in MTXPush() argument
112 ASSERTMSG( (m != 0), MTX_PUSH_3 ); in MTXPush()
118 MTXCopy( m, sPtr->stackPtr ); in MTXPush()
130 MTXCopy( m, (sPtr->stackPtr + MTX_PTR_OFFSET) ); in MTXPush()
160 MtxPtr MTXPushFwd ( MtxStack *sPtr, const Mtx m ) in MTXPushFwd() argument
165 ASSERTMSG( (m != 0), MTX_PUSHFWD_3 ); in MTXPushFwd()
171 MTXCopy( m, sPtr->stackPtr ); in MTXPushFwd()
183 MTXConcat( sPtr->stackPtr, m, ( sPtr->stackPtr + MTX_PTR_OFFSET ) ); in MTXPushFwd()
216 MtxPtr MTXPushInv ( MtxStack *sPtr, const Mtx m ) in MTXPushInv() argument
224 ASSERTMSG( (m != 0), MTX_PUSHINV_3 ); in MTXPushInv()
[all …]
Dquat.c789 void C_QUATMtx( Quaternion *r, const Mtx m ) in C_QUATMtx() argument
797 ASSERTMSG( ( m != 0 ), QUAT_MTX_2 ); in C_QUATMtx()
799 tr = m[0][0] + m[1][1] + m[2][2]; in C_QUATMtx()
805 r->x = (m[2][1] - m[1][2]) * s; in C_QUATMtx()
806 r->y = (m[0][2] - m[2][0]) * s; in C_QUATMtx()
807 r->z = (m[1][0] - m[0][1]) * s; in C_QUATMtx()
812 if (m[1][1] > m[0][0]) i = 1; in C_QUATMtx()
813 if (m[2][2] > m[i][i]) i = 2; in C_QUATMtx()
816 s = (f32)sqrtf( (m[i][i] - (m[j][j] + m[k][k])) + 1.0f ); in C_QUATMtx()
822 r->w = (m[k][j] - m[j][k]) * s; in C_QUATMtx()
[all …]
Dpsmtx.c163 const register ROMtx m, // r3 in PSMTXROMultVecArray() argument
212 psq_l M00_M10, 0(m),0,0 in PSMTXROMultVecArray()
214 psq_l M20_nnn, 8(m),1,0 in PSMTXROMultVecArray()
216 psq_l M03_M13, 36(m),0,0 in PSMTXROMultVecArray()
218 psq_l M23_nnn, 44(m),1,0 in PSMTXROMultVecArray()
229 psq_l M01_M11, 12(m),0,0 in PSMTXROMultVecArray()
231 psq_l M21_nnn, 20(m),1,0 in PSMTXROMultVecArray()
235 psq_l M22_nnn, 32(m),1,0 in PSMTXROMultVecArray()
244 psq_l M02_M12, 24(m),0,0 in PSMTXROMultVecArray()
/RvlSDK-3.2/include/revolution/mtx/
Dmtx44ext.h92 void C_MTX44Identity ( Mtx44 m );
100 void PSMTX44Identity ( Mtx44 m );
125 void C_MTX44Trans ( Mtx44 m, f32 xT, f32 yT, f32 zT );
127 void C_MTX44Scale ( Mtx44 m, f32 xS, f32 yS, f32 zS );
130 void C_MTX44RotRad ( Mtx44 m, char axis, f32 rad );
131 void C_MTX44RotTrig ( Mtx44 m, char axis, f32 sinA, f32 cosA );
132 void C_MTX44RotAxisRad ( Mtx44 m, const Vec *axis, f32 rad);
136 void PSMTX44Trans ( Mtx44 m, f32 xT, f32 yT, f32 zT );
138 void PSMTX44Scale ( Mtx44 m, f32 xS, f32 yS, f32 zS );
141 void PSMTX44RotRad ( Mtx44 m, char axis, f32 rad );
[all …]
/RvlSDK-3.2/include/revolution/
Dmtx.h209 #define MTXRowCol(m,r,c) ((m)[(r)][(c)]) argument
216 void C_MTXIdentity ( Mtx m );
226 void PSMTXIdentity ( Mtx m );
259 void C_MTXMultVec ( const Mtx m, const Vec *src, Vec *dst );
260 void C_MTXMultVecArray ( const Mtx m, const Vec *srcBase, Vec *dstBase, u32 count );
261 void C_MTXMultVecSR ( const Mtx m, const Vec *src, Vec *dst );
262 void C_MTXMultVecArraySR ( const Mtx m, const Vec *srcBase, Vec *dstBase, u32 count );
266 void PSMTXMultVec ( const Mtx m, const Vec *src, Vec *dst );
267 void PSMTXMultVecArray ( const Mtx m, const Vec *srcBase, Vec *dstBase, u32 count );
268 void PSMTXMultVecSR ( const Mtx m, const Vec *src, Vec *dst );
[all …]
/RvlSDK-3.2/build/demos/gxdemo/src/Lighting/
Dlit-atn-func.c323 u32 m = sc->mode; in AnimTick() local
329 d = ( m == 0 ) ? 1 : 10; in AnimTick()
330 min = ( m == 0 ) ? 5 : 10; in AnimTick()
331 max = ( m == 0 ) ? 90 : 1000; in AnimTick()
335 sc->sub[m].param0 -= d; in AnimTick()
336 if ( sc->sub[m].param0 < min ) in AnimTick()
338 sc->sub[m].param0 = min; in AnimTick()
344 sc->sub[m].param0 += d; in AnimTick()
345 if ( sc->sub[m].param0 > max ) in AnimTick()
347 sc->sub[m].param0 = max; in AnimTick()
[all …]
/RvlSDK-3.2/build/demos/gxdemo/src/TexGen/
Dtg-basic.c19 Mtx v, m, mv; variable
203 MTXRotDeg(m, 'Y', i); in AnimTick()
204 MTXConcat(v, m, mv); in AnimTick()
206 MTXInverse(mv, m); in AnimTick()
207 MTXTranspose(m, m); in AnimTick()
208 GXLoadNrmMtxImm(m, GX_PNMTX0); in AnimTick()
239 MTXTrans(m, 0.0F, ((float)i)/100.0F, 0.0F); in AnimTick()
240 GXLoadTexMtxImm(m, GX_TEXMTX0, GX_MTX2x4); in AnimTick()
243 MTXRotDeg(m, 'Z', i); in AnimTick()
244 GXLoadTexMtxImm(m, GX_TEXMTX0, GX_MTX2x4); in AnimTick()
Dtg-project.c29 static void MakeModelMtx ( Vec xAxis, Vec yAxis, Vec zAxis, Mtx m );
48 Mtx v, m; variable
220 MTXScale(m, 20.0F, 20.0F, 20.0F); in DrawInit()
250 MTXConcat(v, m, mv); in DrawTick()
319 static void MakeModelMtx ( Vec xAxis, Vec yAxis, Vec zAxis, Mtx m ) in MakeModelMtx() argument
325 m[0][0] = xAxis.x; in MakeModelMtx()
326 m[1][0] = xAxis.y; in MakeModelMtx()
327 m[2][0] = xAxis.z; in MakeModelMtx()
329 m[0][1] = yAxis.x; in MakeModelMtx()
330 m[1][1] = yAxis.y; in MakeModelMtx()
[all …]
Dtg-parabolicmap.c28 static Mtx v, m, mv; variable
274 MTXIdentity(m); in AnimTick()
275 MTXConcat(v, m, mv); in AnimTick()
277 MTXInverse(mv, m); in AnimTick()
278 MTXTranspose(m, m); in AnimTick()
279 GXLoadNrmMtxImm(m, GX_PNMTX0); in AnimTick()
Dtg-clr-persp.c183 static void MakeModelMtx(Vec xAxis, Vec yAxis, Vec zAxis, Mtx m);
259 static void MakeModelMtx ( Vec xAxis, Vec yAxis, Vec zAxis, Mtx m ) in MakeModelMtx() argument
265 m[0][0] = xAxis.x; in MakeModelMtx()
266 m[1][0] = xAxis.y; in MakeModelMtx()
267 m[2][0] = xAxis.z; in MakeModelMtx()
269 m[0][1] = yAxis.x; in MakeModelMtx()
270 m[1][1] = yAxis.y; in MakeModelMtx()
271 m[2][1] = yAxis.z; in MakeModelMtx()
273 m[0][2] = zAxis.x; in MakeModelMtx()
274 m[1][2] = zAxis.y; in MakeModelMtx()
[all …]
/RvlSDK-3.2/build/demos/gxdemo/src/Framebuffer/
Dfrb-fld-int.c250 Mtx m; // Model matrix. in DrawTick() local
262 MTXRotDeg(m, 'x', 20.0F); in DrawTick()
263 MTXConcat(ms->v, m, mv); in DrawTick()
266 MTXRotDeg(m, 'y', 8 * ms->ticks + 102.5F); in DrawTick()
267 MTXConcat(mv, m, mv); in DrawTick()
270 MTXScale(m, 200.0F, 200.0F, 200.0F); in DrawTick()
271 MTXConcat(mv, m, mv); in DrawTick()
296 MTXScale(m, 1.0F, -1.0F, 1.0F); in DrawTick()
297 MTXConcat(ms->v, m, mv); in DrawTick()
298 MTXTrans(m, -ms->width/2.0F, -ms->height/2.0F, 0.0F); in DrawTick()
[all …]
Dfrb-fld-dbs.c226 Mtx m; // Model matrix. in DrawTick() local
236 MTXRotDeg(m, 'z', 8 * ticks); in DrawTick()
237 MTXConcat(v, m, mv); in DrawTick()
/RvlSDK-3.2/build/demos/gxdemo/src/Transform/
Dtf-tg-mtx.c425 Mtx m; in SetNoTexGenMtx() local
427 MTXIdentity(m); in SetNoTexGenMtx()
429 GXLoadTexMtxImm(m, GX_TEXMTX0, GX_MTX2x4); in SetNoTexGenMtx()
430 GXLoadTexMtxImm(m, GX_TEXMTX1, GX_MTX2x4); in SetNoTexGenMtx()
431 GXLoadTexMtxImm(m, GX_TEXMTX2, GX_MTX2x4); in SetNoTexGenMtx()
432 GXLoadTexMtxImm(m, GX_TEXMTX3, GX_MTX2x4); in SetNoTexGenMtx()
433 GXLoadTexMtxImm(m, GX_TEXMTX4, GX_MTX2x4); in SetNoTexGenMtx()
434 GXLoadTexMtxImm(m, GX_TEXMTX5, GX_MTX2x4); in SetNoTexGenMtx()
435 GXLoadTexMtxImm(m, GX_TEXMTX6, GX_MTX2x4); in SetNoTexGenMtx()
436 GXLoadTexMtxImm(m, GX_TEXMTX7, GX_MTX2x4); in SetNoTexGenMtx()
[all …]
/RvlSDK-3.2/build/demos/gxdemo/src/Simple/
Dsmp-onetri_dl.c218 Mtx m; // Model matrix. in DrawTick() local
225 MTXIdentity(m); in DrawTick()
233 MTXRowCol(m, 0, 3) = x; in DrawTick()
234 MTXRowCol(m, 1, 3) = y; in DrawTick()
235 MTXRowCol(m, 2, 3) = z; in DrawTick()
236 MTXConcat(v, m, mv); in DrawTick()
Dsmp-toy-draw.c581 Mtx m; // Model matrix. in DrawTick() local
590 MTXTrans(m, BOX_CENTROIDX, 0.0F, BOX_CENTROIDX); in DrawTick()
591 MTXConcat(v, m, mv); in DrawTick()
592 MTXRotDeg(m, 'x', GetAnalogY()*TILTX_SCALE); in DrawTick()
593 MTXConcat(mv, m, mv); in DrawTick()
594 MTXRotDeg(m, 'z', GetAnalogX()*TILTZ_SCALE); in DrawTick()
595 MTXConcat(mv, m, mv); in DrawTick()
596 MTXTrans(m, -BOX_CENTROIDX, 0.0F, -BOX_CENTROIDX); in DrawTick()
597 MTXConcat(mv, m, mv); in DrawTick()
Dsmp-onetri.c235 Mtx m; // Model matrix. in DrawTick() local
242 MTXIdentity(m); in DrawTick()
250 MTXRowCol(m, 0, 3) = x; in DrawTick()
251 MTXRowCol(m, 1, 3) = y; in DrawTick()
252 MTXRowCol(m, 2, 3) = z; in DrawTick()
253 MTXConcat(v, m, mv); in DrawTick()
Dsmp-octa.c222 Mtx m; // Model matrix. in DrawTick() local
232 MTXRotDeg(m, 'z', 8 * ticks); in DrawTick()
233 MTXConcat(v, m, mv); in DrawTick()
/RvlSDK-3.2/build/demos/dvddemo/src/
Dselectfile.c94 DEMOWinMenuInfo *m; // directory menu in SelectFile() local
101 m = __create_dir_menu(); in SelectFile()
102 if (m) in SelectFile()
104 DEMOWinCreateMenuWindow(m, (u16)(handle->x2-10), (u16)(handle->y1+24)); in SelectFile()
105 val = DEMOWinMenu(m); in SelectFile()
106 DEMOWinDestroyMenuWindow(m); in SelectFile()
/RvlSDK-3.2/build/demos/gxdemo/src/Performance/
Dperf-fill.c102 static void MakeModelMtx ( Vec xAxis, Vec yAxis, Vec zAxis, Mtx m );
600 Mtx m, t; in DrawTick() local
624 MTXScale(m, testData.mods, testData.mods, testData.mods); in DrawTick()
626 MTXConcat(t, m, m); // scale, rotate in DrawTick()
628 MTXConcat(t, m, m); // translate in DrawTick()
629 MTXConcat(v, m, mv); // concat view matrix in DrawTick()
642 MTXScale(m, testData.mods, testData.mods, testData.mods); in DrawTick()
644 MTXConcat(t, m, m); // scale, translate in DrawTick()
645 MTXConcat(v, m, mv); // concat view matrix in DrawTick()
881 static void MakeModelMtx ( Vec xAxis, Vec yAxis, Vec zAxis, Mtx m ) in MakeModelMtx() argument
[all …]
/RvlSDK-3.2/build/demos/videmo/src/
Dsmp-onetri_Progressive.c283 Mtx m; // Model matrix. in DrawTick() local
290 MTXIdentity(m); in DrawTick()
298 MTXRowCol(m, 0, 3) = x; in DrawTick()
299 MTXRowCol(m, 1, 3) = y; in DrawTick()
300 MTXRowCol(m, 2, 3) = z; in DrawTick()
301 MTXConcat(v, m, mv); in DrawTick()
Dsmp-onetri_PAL.c414 Mtx m; // Model matrix. in DrawTick() local
421 MTXIdentity(m); in DrawTick()
429 MTXRowCol(m, 0, 3) = x; in DrawTick()
430 MTXRowCol(m, 1, 3) = y; in DrawTick()
431 MTXRowCol(m, 2, 3) = z; in DrawTick()
432 MTXConcat(v, m, mv); in DrawTick()

12