Loading [MathJax]/extensions/tex2jax.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
perfdraw.c File Reference

Functions

 __declspec (weak)
 
 while (0)
 
f32 HEIGHT (u32 a, f32 f)
 
f32 COORD (u32 a)
 
void __PERFDrawInit (void(*id)())
 
void PERFPreDraw (void)
 
static void DrawBWBar (PerfSample *s)
 
static void DrawKey (void)
 
void PERFDumpScreen (void)
 
void PERFPostDraw (void)
 
void PERFSetDrawBWBarKey (BOOL tf)
 
void PERFSetDrawBWBar (BOOL tf)
 
void PERFSetDrawCPUBar (BOOL tf)
 
void PERFSetDrawXFBars (BOOL tf)
 
void PERFSetDrawRASBar (BOOL tf)
 
void PERFToggleDrawBWBarKey (void)
 
void PERFToggleDrawBWBar (void)
 
void PERFToggleDrawCPUBar (void)
 
void PERFToggleDrawXFBars (void)
 
void PERFToggleDrawRASBar (void)
 
void PERFSetDrawFrames (u32 frames)
 

Variables

static GXColor DrawFrameColor = { 0x19, 0x19, 0x19, 0xC8 }
 
static GXColor DrawCPUColor = { 0xFF, 0x19, 0x00, 0xC8 }
 
static GXColor DrawFullColor = { 0xFF, 0x00, 0xFF, 0xC8 }
 
static GXColor DrawGPColor = { 0x00, 0x64, 0xFF, 0xC8 }
 
static GXColor DrawCPUCacheColor = { 0x00, 0x96, 0x00, 0xC8 }
 
static GXColor DrawConnectColor = { 0x00, 0x00, 0x00, 0xC8 }
 
static GXColor DrawBWBarColor = { 0x32, 0x32, 0x32, 0xC8 }
 
static GXColor DrawIPCBarColor = { 0x00, 0x00, 0x5A, 0xAA }
 
static GXColor DrawGPUBarColor = { 0x5A, 0x00, 0x00, 0xAA }
 
static GXColor DrawIPCColor = { 0xC8, 0x64, 0x00, 0xAA }
 
static GXColor DrawCPColor = { 0xC8, 0x00, 0xC8, 0xC8 }
 
static GXColor DrawTCColor = { 0x00, 0xC8, 0x00, 0xC8 }
 
static GXColor DrawCPURDColor = { 0xFF, 0xFF, 0x00, 0xC8 }
 
static GXColor DrawCPUWRColor = { 0x00, 0x64, 0x64, 0xC8 }
 
static GXColor DrawDSPColor = { 0xC8, 0x00, 0x00, 0xC8 }
 
static GXColor DrawIOColor = { 0x96, 0x96, 0x32, 0xC8 }
 
static GXColor DrawVIColor = { 0xFF, 0xFF, 0xFF, 0xC8 }
 
static GXColor DrawPEColor = { 0x00, 0x00, 0xC8, 0xC8 }
 
static GXColor DrawRFColor = { 0x00, 0xFF, 0xFF, 0xC8 }
 
static GXColor DrawFIColor = { 0xC8, 0x64, 0x64, 0xC8 }
 
static GXColor DrawGPXFIColor = { 0x00, 0xC8, 0x00, 0xAA }
 
static GXColor DrawGPXFOColor = { 0x00, 0x00, 0xC8, 0xAA }
 
static GXColor DrawGPRASIDLEColor = { 0xC8, 0xC8, 0x00, 0xAA }
 
static BOOL bDrawBWBar = TRUE
 
static BOOL bDrawCPUBar = TRUE
 
static BOOL bDrawXFBars = TRUE
 
static BOOL bDrawRASBar = TRUE
 
static BOOL bAutoScale = TRUE
 
static BOOL bDrawBWBarKey
 
static f32 lastx
 
static f32 FramePts [28]
 
static f32 CPUPts [4]
 
static f32 GPPts [4]
 
void(* GameDrawInit )()
 
Mtx mID
 
static Mtx44 mProj
 
f32 pSave [7]
 

Function Documentation

◆ __declspec()

__declspec ( weak )

◆ __PERFDrawInit()

void __PERFDrawInit ( void(* id )())

◆ COORD()

f32 COORD ( u32 a)
inline

◆ DrawBWBar()

static void DrawBWBar ( PerfSample * s)
static

◆ DrawKey()

static void DrawKey ( void )
static

◆ HEIGHT()

f32 HEIGHT ( u32 a,
f32 f )
inline

◆ PERFDumpScreen()

void PERFDumpScreen ( void )

◆ PERFPostDraw()

void PERFPostDraw ( void )

◆ PERFPreDraw()

void PERFPreDraw ( void )

◆ PERFSetDrawBWBar()

void PERFSetDrawBWBar ( BOOL tf)

◆ PERFSetDrawBWBarKey()

void PERFSetDrawBWBarKey ( BOOL tf)

◆ PERFSetDrawCPUBar()

void PERFSetDrawCPUBar ( BOOL tf)

◆ PERFSetDrawFrames()

void PERFSetDrawFrames ( u32 frames)

◆ PERFSetDrawRASBar()

void PERFSetDrawRASBar ( BOOL tf)

◆ PERFSetDrawXFBars()

void PERFSetDrawXFBars ( BOOL tf)

◆ PERFToggleDrawBWBar()

void PERFToggleDrawBWBar ( void )

◆ PERFToggleDrawBWBarKey()

void PERFToggleDrawBWBarKey ( void )

◆ PERFToggleDrawCPUBar()

void PERFToggleDrawCPUBar ( void )

◆ PERFToggleDrawRASBar()

void PERFToggleDrawRASBar ( void )

◆ PERFToggleDrawXFBars()

void PERFToggleDrawXFBars ( void )

◆ while()

while ( 0 )

Variable Documentation

◆ bAutoScale

BOOL bAutoScale = TRUE
static

◆ bDrawBWBar

BOOL bDrawBWBar = TRUE
static

◆ bDrawBWBarKey

BOOL bDrawBWBarKey
static

◆ bDrawCPUBar

BOOL bDrawCPUBar = TRUE
static

◆ bDrawRASBar

BOOL bDrawRASBar = TRUE
static

◆ bDrawXFBars

BOOL bDrawXFBars = TRUE
static

◆ CPUPts

f32 CPUPts[4]
static
Initial value:
= {
0.0f,
0.0f,
616.0f,
0.0f,
}

◆ DrawBWBarColor

GXColor DrawBWBarColor = { 0x32, 0x32, 0x32, 0xC8 }
static

◆ DrawConnectColor

GXColor DrawConnectColor = { 0x00, 0x00, 0x00, 0xC8 }
static

◆ DrawCPColor

GXColor DrawCPColor = { 0xC8, 0x00, 0xC8, 0xC8 }
static

◆ DrawCPUCacheColor

GXColor DrawCPUCacheColor = { 0x00, 0x96, 0x00, 0xC8 }
static

◆ DrawCPUColor

GXColor DrawCPUColor = { 0xFF, 0x19, 0x00, 0xC8 }
static

◆ DrawCPURDColor

GXColor DrawCPURDColor = { 0xFF, 0xFF, 0x00, 0xC8 }
static

◆ DrawCPUWRColor

GXColor DrawCPUWRColor = { 0x00, 0x64, 0x64, 0xC8 }
static

◆ DrawDSPColor

GXColor DrawDSPColor = { 0xC8, 0x00, 0x00, 0xC8 }
static

◆ DrawFIColor

GXColor DrawFIColor = { 0xC8, 0x64, 0x64, 0xC8 }
static

◆ DrawFrameColor

GXColor DrawFrameColor = { 0x19, 0x19, 0x19, 0xC8 }
static

◆ DrawFullColor

GXColor DrawFullColor = { 0xFF, 0x00, 0xFF, 0xC8 }
static

◆ DrawGPColor

GXColor DrawGPColor = { 0x00, 0x64, 0xFF, 0xC8 }
static

◆ DrawGPRASIDLEColor

GXColor DrawGPRASIDLEColor = { 0xC8, 0xC8, 0x00, 0xAA }
static

◆ DrawGPUBarColor

GXColor DrawGPUBarColor = { 0x5A, 0x00, 0x00, 0xAA }
static

◆ DrawGPXFIColor

GXColor DrawGPXFIColor = { 0x00, 0xC8, 0x00, 0xAA }
static

◆ DrawGPXFOColor

GXColor DrawGPXFOColor = { 0x00, 0x00, 0xC8, 0xAA }
static

◆ DrawIOColor

GXColor DrawIOColor = { 0x96, 0x96, 0x32, 0xC8 }
static

◆ DrawIPCBarColor

GXColor DrawIPCBarColor = { 0x00, 0x00, 0x5A, 0xAA }
static

◆ DrawIPCColor

GXColor DrawIPCColor = { 0xC8, 0x64, 0x00, 0xAA }
static

◆ DrawPEColor

GXColor DrawPEColor = { 0x00, 0x00, 0xC8, 0xC8 }
static

◆ DrawRFColor

GXColor DrawRFColor = { 0x00, 0xFF, 0xFF, 0xC8 }
static

◆ DrawTCColor

GXColor DrawTCColor = { 0x00, 0xC8, 0x00, 0xC8 }
static

◆ DrawVIColor

GXColor DrawVIColor = { 0xFF, 0xFF, 0xFF, 0xC8 }
static

◆ FramePts

f32 FramePts[28]
static
Initial value:
= {
0.0f,
0.0f,
0.0f,
10.0f,
0.0f,
0.0f,
616.0f,
0.0f,
616.0f,
0.0f,
616.0f,
10.0f,
0.0f,
10.0f,
616.0f,
10.0f,
205.33333f,
0.0f,
205.33333f,
10.0f,
410.66666f,
0.0f,
410.66666f,
10.0f,
616.0f,
0.0f,
616.0f,
10.0f,
}

◆ GameDrawInit

void(* GameDrawInit) () ( )

◆ GPPts

f32 GPPts[4]
static
Initial value:
= {
0.0f,
0.0f,
616.0f,
0.0f,
}

◆ lastx

f32 lastx
static

◆ mID

Mtx mID

◆ mProj

Mtx44 mProj
static

◆ pSave

f32 pSave[7]