| /RvlSDK-2.1/include/revolution/gx/ |
| D | GXLighting.h | 98 f32 a0, 99 f32 a1, 100 f32 a2, 101 f32 k0, 102 f32 k1, 103 f32 k2 ); 105 void GXInitLightAttnA ( GXLightObj *lt_obj, f32 a0, f32 a1, f32 a2); 106 void GXInitLightAttnK ( GXLightObj *lt_obj, f32 k0, f32 k1, f32 k2 ); 110 f32 cutoff, 115 f32 ref_distance, [all …]
|
| D | GXTransform.h | 97 void GXSetProjection ( const f32 mtx[4][4], GXProjectionType type ); 98 void GXSetProjectionv ( const f32 *ptr ); 99 void GXLoadPosMtxImm ( const f32 mtx[3][4], u32 id ); 101 void GXLoadNrmMtxImm ( const f32 mtx[3][4], u32 id ); 102 void GXLoadNrmMtxImm3x3 ( const f32 mtx[3][3], u32 id ); 105 void GXLoadTexMtxImm ( const f32 mtx[][4], u32 id, GXTexMtxType type ); 109 f32 x, // model coordinates 110 f32 y, 111 f32 z, 112 const f32 mtx[3][4], // model-view matrix [all …]
|
| D | GXGet.h | 108 void GXGetViewportv( f32* viewport ); // used by GXProject 109 void GXGetProjectionv( f32* p ); // used by GXProject 127 f32* a0, 128 f32* a1, 129 f32* a2 ); 133 f32* k0, 134 f32* k1, 135 f32* k2 ); 139 f32* x, 140 f32* y, [all …]
|
| D | GXEmVert.h | 46 void EmGXParam1f32( f32 x ); 47 void EmGXParam3f32( f32 x, f32 y, f32 z ); 48 void EmGXParam4f32( f32 x, f32 y, f32 z, f32 w ); 67 void EmGXNormal3f32 ( f32 x, f32 y, f32 z ); 82 void EmGXTexCoord2f32 ( f32 s, f32 t ); 87 void EmGXTexCoord1f32 ( f32 s );
|
| /RvlSDK-2.1/include/revolution/ |
| D | axfx.h | 193 f32 *earlyLine[3]; 197 f32 earlyCoef[3]; 198 f32 *preDelayLine[3]; 202 f32 *combLine[3][3]; 206 f32 combCoef[3]; 207 f32 *allpassLine[3][2]; 211 f32 *lastAllpassLine[3]; 215 f32 allpassCoef; 216 f32 lastLpfOut[3]; 217 f32 lpfCoef; [all …]
|
| D | mtx.h | 290 void C_MTXTrans ( Mtx m, f32 xT, f32 yT, f32 zT ); 291 void C_MTXTransApply ( const Mtx src, Mtx dst, f32 xT, f32 yT, f32 zT ); 292 void C_MTXScale ( Mtx m, f32 xS, f32 yS, f32 zS ); 293 void C_MTXScaleApply ( const Mtx src, Mtx dst, f32 xS, f32 yS, f32 zS ); 295 void C_MTXRotRad ( Mtx m, char axis, f32 rad ); 296 void C_MTXRotTrig ( Mtx m, char axis, f32 sinA, f32 cosA ); 297 void C_MTXRotAxisRad ( Mtx m, const Vec *axis, f32 rad ); 304 void PSMTXTrans ( Mtx m, f32 xT, f32 yT, f32 zT ); 305 void PSMTXTransApply ( const Mtx src, Mtx dst, f32 xT, f32 yT, f32 zT ); 306 void PSMTXScale ( Mtx m, f32 xS, f32 yS, f32 zS ); [all …]
|
| D | kpad.h | 96 f32 x; 97 f32 y; 105 f32 acc_value ; 106 f32 acc_speed ; 117 f32 ltrigger; 118 f32 rtrigger; 125 f32 ltrigger ; 126 f32 rtrigger ; 139 f32 acc_value ; 140 f32 acc_speed ; [all …]
|
| D | axart.h | 103 f32 *lfo; // lfo samples in RAM 105 f32 delta; // lfo delta per 5ms 108 f32 counter; // lfo counter 109 f32 sample1; // lfo last sample for interpolation 110 f32 sample; // lfo sample 111 f32 output; // lfo output 123 extern f32 AXARTSine[AXART_SINE_SAMPLES]; 124 extern f32 AXARTSquare[AXART_SQUARE_SAMPLES]; 125 extern f32 AXARTSaw[AXART_SAW_SAMPLES]; 126 extern f32 AXARTReverseSaw[AXART_REVERSESAW_SAMPLES]; [all …]
|
| /RvlSDK-2.1/build/demos/kpaddemo/include/ |
| D | graphic.h | 38 extern void draw_point( f32 px, f32 py, GXColor clr, f32 size ) ; 39 extern void draw_line( f32 x1, f32 y1, f32 x2, f32 y2, GXColor clr, f32 width ) ; 40 extern void draw_dashed_line( f32 x1, f32 y1, f32 x2, f32 y2, GXColor clr, f32 width ); 41 extern void draw_arrow( f32 x1, f32 y1, f32 x2, f32 y2, GXColor clr, f32 width ) ; 42 extern void draw_dashed_arrow( f32 x1, f32 y1, f32 x2, f32 y2, GXColor clr, f32 width ); 43 extern void draw_circle( f32 ox, f32 oy, f32 radius, GXColor clr, f32 width ) ;
|
| D | kfont.h | 25 extern void init_draw_kfont( u16 fb_width, u16 fb_height, f32 lt_width, f32 lt_height ) ; 26 extern s32 draw_kfont_s32( f32 cx, f32 cy, GXColor clr, s32 val ) ; 27 extern s32 draw_kfont_f32( f32 cx, f32 cy, GXColor clr, f32 val, s32 keta ) ; 28 extern void draw_kfont_bit( f32 cx, f32 cy, GXColor clr, u32 val, s32 keta ) ; 29 extern void draw_kfont_letter( f32 cx, f32 cy, GXColor clr, char *str ) ; 31 extern f32 calc_kfont_x1( f32 cx ) ; 32 extern f32 calc_kfont_y1( f32 cy ) ; 33 extern f32 calc_kfont_x2( f32 cx ) ; 34 extern f32 calc_kfont_y2( f32 cy ) ;
|
| /RvlSDK-2.1/build/libraries/kpad/include/ |
| D | KPADinside.h | 66 f32 pos_play_radius ; // Play radius (size in the pos coordinate system) 67 f32 pos_sensitivity ; // Sensitivity (0: Insensitive -> 1: Sensitive) 69 f32 hori_play_radius ; // Adjust horizon sensitivity 70 f32 hori_sensitivity ; // 72 f32 dist_play_radius ; // Adjust dist sensitivity 73 f32 dist_sensitivity ; // 75 f32 acc_play_radius ; // Adjust acc sensitivity 76 f32 acc_sensitivity ; // 79 f32 dist_org ; // Distance after calibration 83 …f32 dpd2pos_scale ; // Scale value where the left/right end of pointing is within +/- of t… [all …]
|
| /RvlSDK-2.1/include/revolution/mtx/ |
| D | mtx44ext.h | 125 void C_MTX44Trans ( Mtx44 m, f32 xT, f32 yT, f32 zT ); 126 void C_MTX44TransApply ( const Mtx44 src, Mtx44 dst, f32 xT, f32 yT, f32 zT ); 127 void C_MTX44Scale ( Mtx44 m, f32 xS, f32 yS, f32 zS ); 128 void C_MTX44ScaleApply ( const Mtx44 src, Mtx44 dst, 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 ); 137 void PSMTX44TransApply ( const Mtx44 src, Mtx44 dst, f32 xT, f32 yT, f32 zT ); 138 void PSMTX44Scale ( Mtx44 m, f32 xS, f32 yS, f32 zS ); [all …]
|
| D | GeoTypes.h | 57 f32 x, y, z; 79 f32 x, y, z, w; 85 typedef f32 Mtx[3][4]; 87 typedef f32 (*MtxPtr)[4]; 90 typedef f32 ROMtx[4][3]; 92 typedef f32 (*ROMtxPtr)[3]; 98 typedef f32 Mtx44[4][4]; 100 typedef f32 (*Mtx44Ptr)[4];
|
| /RvlSDK-2.1/build/demos/kpaddemo/src/ |
| D | kfont.c | 35 static f32 canvas_wd,canvas_ht ; // Virtual canvas size 36 static f32 cursor_wd,cursor_ht ; // Cursor size 38 static f32 cursor_x1,cursor_y1 ; // Coordinate of upper leftmost cursor 39 static f32 letter_ox,letter_oy ; // Offset from the cursor position to the character position 40 static f32 letter_wd,letter_ht ; // Character size 46 static f32 s1_ofs ; // Depending on whether the main unit is the Japanese or USA version: 47 static f32 s2_ofs ; // Adjustments are made to display different fonts 48 static f32 t1_ofs ; // �\���������s�� 78 s1_ofs = 0.15f * (f32)KFONT_WD / (f32)KFONT_SHEET_WD ; in init_kfont_texture() 79 s2_ofs = -0.30f * (f32)KFONT_WD / (f32)KFONT_SHEET_WD ; in init_kfont_texture() [all …]
|
| D | graphic.c | 49 f32 canvas_wd, canvas_ht ; in init_draw_graphic() 101 void draw_point( f32 px, f32 py, GXColor clr, f32 size ) in draw_point() 115 void draw_line( f32 x1, f32 y1, f32 x2, f32 y2, GXColor clr, f32 width ) in draw_line() 130 void draw_dashed_line( f32 x1, f32 y1, f32 x2, f32 y2, GXColor clr, f32 width ) in draw_dashed_line() 134 f32 dx = x2 - x1; in draw_dashed_line() 135 f32 dy = y2 - y1; in draw_dashed_line() 136 f32 length = (f32)sqrt(dx*dx + dy*dy); in draw_dashed_line() 152 void draw_arrow( f32 x1, f32 y1, f32 x2, f32 y2, GXColor clr, f32 width ) in draw_arrow() 154 f32 vx,vy, f ; in draw_arrow() 176 void draw_dashed_arrow( f32 x1, f32 y1, f32 x2, f32 y2, GXColor clr, f32 width ) in draw_dashed_arrow() [all …]
|
| D | sample.c | 44 static f32 pointing_scale = 200.0f ; // On-screen pointing scale 46 static f32 obj_interval = 0.20f ; // Interval between light-emitting points on the TV (in meter… 48 static f32 pos_play_radius = 0.00f ; // Set pos sensitivity 49 static f32 pos_sensitivity = 1.00f ; 50 static f32 hori_play_radius = 0.00f ; // Set horizon sensitivity 51 static f32 hori_sensitivity = 1.00f ; 52 static f32 dist_play_radius = 0.00f ; // Set dist sensitivity 53 static f32 dist_sensitivity = 1.00f ; 54 static f32 acc_play_radius = 0.00f ; // Set acc sensitivity 55 static f32 acc_sensitivity = 1.00f ; [all …]
|
| /RvlSDK-2.1/build/demos/gxdemo/src/G2D/ |
| D | G2D-testPhy.c | 55 f32 rWorldWidth, rWorldHeight; 61 static f32 rVelX = 0.0F, rVelY = 0.0F; 62 static f32 rAngV = 0.0F; 63 f32 rAng = 0.0F; 64 static f32 rRelCamX, rRelCamY, rCamA; 65 static f32 rCVelX, rCVelY, rCVelA; 66 static f32 rCIntX, rCIntY, rCIntA; 67 static f32 rCamI; 84 f32 rPosX; 85 f32 rPosY; [all …]
|
| D | G2D-testEditor.c | 92 poShip.rPosX += (f32)(nDX * layer->nTileWidth); in MapEditor() 93 poShip.rPosY += (f32)(nDY * layer->nTileHeight); in MapEditor() 99 poShip.rPosX += (f32)(nDX * layer->nTileWidth); in MapEditor() 104 poShip.rPosY += (f32)(nDY * layer->nTileHeight); in MapEditor() 318 GXPosition2f32( (f32)(nX + 4), (f32)nY ); in DrawCursor() 320 GXPosition2f32( (f32)nX, (f32)nY ); in DrawCursor() 322 GXPosition2f32( (f32)nX, (f32)(nY + 4) ); in DrawCursor() 327 GXPosition2f32( (f32)(nX + nW - 4), (f32)nY ); in DrawCursor() 329 GXPosition2f32( (f32)(nX + nW), (f32)nY ); in DrawCursor() 331 GXPosition2f32( (f32)(nX + nW), (f32)(nY + 4) ); in DrawCursor() [all …]
|
| /RvlSDK-2.1/include/revolution/os/ |
| D | OSFastCast.h | 232 static inline f32 __OSu8tof32(register u8* in) in __OSu8tof32() 234 register f32 r; in __OSu8tof32() 242 static inline void OSu8tof32(register u8* in, volatile register f32* out) in OSu8tof32() 248 static inline f32 __OSu16tof32(register u16* in) in __OSu16tof32() 250 register f32 r; in __OSu16tof32() 258 static inline void OSu16tof32(register u16* in, volatile register f32* out) in OSu16tof32() 264 static inline f32 __OSs8tof32(register s8* in) in __OSs8tof32() 266 register f32 r; in __OSs8tof32() 274 static inline void OSs8tof32(register s8* in, volatile register f32* out) in OSs8tof32() 280 static inline f32 __OSs16tof32(register s16* in) in __OSs16tof32() [all …]
|
| /RvlSDK-2.1/include/revolution/gd/ |
| D | GDLight.h | 74 f32 a0, f32 a1, f32 a2, 75 f32 k0, f32 k1, f32 k2 ); 78 f32 cutoff, 82 f32 ref_distance, 83 f32 ref_brightness, 88 void GDSetLightPos ( GXLightID light, f32 x, f32 y, f32 z ); 90 void GDSetLightDir ( GXLightID light, f32 nx, f32 ny, f32 nz ); 92 void GDSetSpecularDir ( GXLightID light, f32 nx, f32 ny, f32 nz ); 94 void GDSetSpecularDirHA ( GXLightID light, f32 nx, f32 ny, f32 nz, f32 hx, f32 hy, f32 hz ); 117 static inline void GDSetLightShininess( GXLightID light, f32 shininess ) in GDSetLightShininess()
|
| /RvlSDK-2.1/build/libraries/gd/src/ |
| D | GDLight.c | 64 f32 a0, f32 a1, f32 a2, in GDSetLightAttn() 65 f32 k0, f32 k1, f32 k2 ) in GDSetLightAttn() 90 void GDSetLightSpot( GXLightID light, f32 cutoff, GXSpotFn spot_func ) in GDSetLightSpot() 92 f32 a0, a1, a2, r, d, cr; in GDSetLightSpot() 162 void GDSetLightDistAttn( GXLightID light, f32 ref_dist, f32 ref_br, in GDSetLightDistAttn() 165 f32 k0, k1, k2; in GDSetLightDistAttn() 233 void GDSetLightPos ( GXLightID light, f32 x, f32 y, f32 z ) in GDSetLightPos() 253 void GDSetLightDir ( GXLightID light, f32 nx, f32 ny, f32 nz ) in GDSetLightDir() 276 void GDSetSpecularDirHA ( GXLightID light, f32 nx, f32 ny, f32 nz, f32 hx, f32 hy, f32 hz ) in GDSetSpecularDirHA() 278 f32 px, py, pz; in GDSetSpecularDirHA() [all …]
|
| /RvlSDK-2.1/build/libraries/wpad/src/ |
| D | WPADClamp.c | 41 static void __ClampCube ( s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max ); 42 static void __ClampSphere ( s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max ); 583 static void __ClampCube(s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max) in __ClampCube() 585 f32 x = (f32)((f32)*px / (f32)unit.x); in __ClampCube() 586 f32 y = (f32)((f32)*py / (f32)unit.y); in __ClampCube() 587 f32 z = (f32)((f32)*pz / (f32)unit.z); in __ClampCube() 588 f32 signX = 1.0f; in __ClampCube() 589 f32 signY = 1.0f; in __ClampCube() 590 f32 signZ = 1.0f; in __ClampCube() 625 *px = (s16)(x * (f32)unit.x); in __ClampCube() [all …]
|
| /RvlSDK-2.1/build/demos/gxdemo/src/Indirect/ |
| D | ind-bump-st.c | 70 f32 R1=1.0f, R2=0.5f; // Donut radii. 74 f32 x, y, z; 75 f32 nx, ny, nz; 76 f32 bx, by, bz; 77 f32 tx, ty, tz; 78 f32 s, t; 96 coord donutCoord (u32 a, u32 b, u32 N1, u32 N2, f32 R1, f32 R2); 110 void updateDonut(Mtx cam, f32 r1, f32 r2, f32 x, f32 y, f32 z); 114 void drawScene(Mtx cam, f32 r1, f32 r2); 123 coord donutCoord (u32 a, u32 b, u32 N1, u32 N2, f32 R1, f32 R2) in donutCoord() [all …]
|
| D | ind-pseudo-3d.c | 45 f32 x, y, z; 46 f32 nx, ny, nz; 47 f32 s, t; 66 void adjustPoint(coord height[HFH][HFW], u16 r, u16 c, f32 h); 75 void updateScene(Mtx cam, f32 r1, f32 r2, f32 x, f32 y, f32 z, f32 mag); 113 void adjustPoint(coord height[HFH][HFW], u16 r, u16 c, f32 h) in adjustPoint() 131 f32 h; in createHeightField() 132 f32 dx, dy; in createHeightField() 133 f32 imag; in createHeightField() 143 height[r][c].x = (f32) c - HFW/2.0f; in createHeightField() [all …]
|
| /RvlSDK-2.1/build/libraries/mtx/src/ |
| D | mtx44.c | 60 static f32 mtxUnit[] = {0.0f, 1.0f, 0.5f, 3.0f}; 110 void C_MTXFrustum ( Mtx44 m, f32 t, f32 b, f32 l, f32 r, f32 n, f32 f ) in C_MTXFrustum() 112 f32 tmp; in C_MTXFrustum() 177 void C_MTXPerspective ( Mtx44 m, f32 fovY, f32 aspect, f32 n, f32 f ) in C_MTXPerspective() 179 f32 angle; in C_MTXPerspective() 180 f32 cot; in C_MTXPerspective() 181 f32 tmp; in C_MTXPerspective() 249 void C_MTXOrtho ( Mtx44 m, f32 t, f32 b, f32 l, f32 r, f32 n, f32 f ) in C_MTXOrtho() 251 f32 tmp; in C_MTXOrtho() 342 register f32 c1 = 1.0F; in PSMTX44Identity() [all …]
|