SSBM Decomp
Loading...
Searching...
No Matches
perfdraw.c File Reference
#include <dolphin.h>
#include "__perf.h"
#include <dolphin/perf.h>

Macros

#define DRAW_RECT(x1, x2, y1, y2, color)

Functions

 __declspec (weak)
float HEIGHT (unsigned long a, float f)
float COORD (unsigned long a)
void __PERFDrawInit (void(*id)())
void PERFPreDraw ()
static void DrawBWBar (struct PerfSample *s)
static void DrawKey ()
void PERFDumpScreen ()
void PERFPostDraw ()
void PERFSetDrawBWBarKey (int tf)
void PERFSetDrawBWBar (int tf)
void PERFSetDrawCPUBar (int tf)
void PERFSetDrawXFBars (int tf)
void PERFSetDrawRASBar (int tf)
void PERFToggleDrawBWBarKey ()
void PERFToggleDrawBWBar ()
void PERFToggleDrawCPUBar ()
void PERFToggleDrawXFBars ()
void PERFToggleDrawRASBar ()

Variables

static GXColor DrawFrameColor
static GXColor DrawCPUColor
static GXColor DrawFullColor
static GXColor DrawGPColor
static GXColor DrawCPUCacheColor
static GXColor DrawConnectColor
static GXColor DrawBWBarColor
static GXColor DrawIPCBarColor
static GXColor DrawGPUBarColor
static GXColor DrawIPCColor
static GXColor DrawCPColor
static GXColor DrawTCColor
static GXColor DrawCPURDColor
static GXColor DrawCPUWRColor
static GXColor DrawDSPColor
static GXColor DrawIOColor
static GXColor DrawVIColor
static GXColor DrawPEColor
static GXColor DrawRFColor
static GXColor DrawFIColor
static GXColor DrawGPXFIColor
static GXColor DrawGPXFOColor
static GXColor DrawGPRASIDLEColor
static int bDrawBWBar = 1
static int bDrawCPUBar = 1
static int bDrawXFBars = 1
static int bDrawRASBar = 1
static int bDrawBWBarKey
static float lastx
static float FramePts [28]
static float CPUPts [4]
static float GPPts [4]
void(* GameDrawInit )()
unsigned long PERFNumEvents
Mtx mID
static Mtx44 mProj
float pSave [7]

Macro Definition Documentation

◆ DRAW_RECT

#define DRAW_RECT ( x1,
x2,
y1,
y2,
color )
Value:
do { \
GXSetChanMatColor(GX_COLOR0A0, color); \
GXBegin(GX_QUADS, GX_VTXFMT0, 4U); \
GXPosition3f32((x1), (y1), -1.0f); \
GXPosition3f32((x1), (y2), -1.0f); \
GXPosition3f32((x2), (y2), -1.0f); \
GXPosition3f32((x2), (y1), -1.0f); \
GXEnd(); \
} while (0)
@ GX_COLOR0A0
Definition GXEnum.h:291
@ GX_VTXFMT0
Definition GXEnum.h:73
@ GX_QUADS
Definition GXEnum.h:63
UnkFlagStruct x1
Definition dbbonus.c:24
u8 x2
Definition gm_1601.c:156

Function Documentation

◆ __declspec()

__declspec ( weak )

◆ HEIGHT()

float HEIGHT ( unsigned long a,
float f )
inline

◆ COORD()

float COORD ( unsigned long a)
inline

◆ __PERFDrawInit()

void __PERFDrawInit ( void(* id )())

◆ PERFPreDraw()

void PERFPreDraw ( )

◆ DrawBWBar()

void DrawBWBar ( struct PerfSample * s)
static

◆ DrawKey()

void DrawKey ( )
static

◆ PERFDumpScreen()

void PERFDumpScreen ( )

◆ PERFPostDraw()

void PERFPostDraw ( )

◆ PERFSetDrawBWBarKey()

void PERFSetDrawBWBarKey ( int tf)

◆ PERFSetDrawBWBar()

void PERFSetDrawBWBar ( int tf)

◆ PERFSetDrawCPUBar()

void PERFSetDrawCPUBar ( int tf)

◆ PERFSetDrawXFBars()

void PERFSetDrawXFBars ( int tf)

◆ PERFSetDrawRASBar()

void PERFSetDrawRASBar ( int tf)

◆ PERFToggleDrawBWBarKey()

void PERFToggleDrawBWBarKey ( )

◆ PERFToggleDrawBWBar()

void PERFToggleDrawBWBar ( )

◆ PERFToggleDrawCPUBar()

void PERFToggleDrawCPUBar ( )

◆ PERFToggleDrawXFBars()

void PERFToggleDrawXFBars ( )

◆ PERFToggleDrawRASBar()

void PERFToggleDrawRASBar ( )

Variable Documentation

◆ DrawFrameColor

GXColor DrawFrameColor
static
Initial value:
= { 0x19, 0x19, 0x19,
0xC8 }

◆ DrawCPUColor

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

◆ DrawFullColor

GXColor DrawFullColor
static
Initial value:
= { 0xFF, 0x00, 0xFF,
0xC8 }

◆ DrawGPColor

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

◆ DrawCPUCacheColor

GXColor DrawCPUCacheColor
static
Initial value:
= { 0x00, 0x96, 0x00,
0xC8 }

◆ DrawConnectColor

GXColor DrawConnectColor
static
Initial value:
= { 0x00, 0x00, 0x00,
0xC8 }

◆ DrawBWBarColor

GXColor DrawBWBarColor
static
Initial value:
= { 0x32, 0x32, 0x32,
0xC8 }

◆ DrawIPCBarColor

GXColor DrawIPCBarColor
static
Initial value:
= { 0x00, 0x00, 0x5A,
0xAA }

◆ DrawGPUBarColor

GXColor DrawGPUBarColor
static
Initial value:
= { 0x5A, 0x00, 0x00,
0xAA }

◆ DrawIPCColor

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

◆ DrawCPColor

GXColor DrawCPColor
static
Initial value:
= { 0xC8, 0x00, 0xC8,
0xC8 }

◆ DrawTCColor

GXColor DrawTCColor
static
Initial value:
= { 0x00, 0xC8, 0x00,
0xC8 }

◆ DrawCPURDColor

GXColor DrawCPURDColor
static
Initial value:
= { 0xFF, 0xFF, 0x00,
0xC8 }

◆ DrawCPUWRColor

GXColor DrawCPUWRColor
static
Initial value:
= { 0x00, 0x64, 0x64,
0xC8 }

◆ DrawDSPColor

GXColor DrawDSPColor
static
Initial value:
= { 0xC8, 0x00, 0x00,
0xC8 }

◆ DrawIOColor

GXColor DrawIOColor
static
Initial value:
= { 0x96, 0x96, 0x32,
0xC8 }

◆ DrawVIColor

GXColor DrawVIColor
static
Initial value:
= { 0xFF, 0xFF, 0xFF,
0xC8 }

◆ DrawPEColor

GXColor DrawPEColor
static
Initial value:
= { 0x00, 0x00, 0xC8,
0xC8 }

◆ DrawRFColor

GXColor DrawRFColor
static
Initial value:
= { 0x00, 0xFF, 0xFF,
0xC8 }

◆ DrawFIColor

GXColor DrawFIColor
static
Initial value:
= { 0xC8, 0x64, 0x64,
0xC8 }

◆ DrawGPXFIColor

GXColor DrawGPXFIColor
static
Initial value:
= { 0x00, 0xC8, 0x00,
0xAA }

◆ DrawGPXFOColor

GXColor DrawGPXFOColor
static
Initial value:
= { 0x00, 0x00, 0xC8,
0xAA }

◆ DrawGPRASIDLEColor

GXColor DrawGPRASIDLEColor
static
Initial value:
= { 0xC8, 0xC8, 0x00,
0xAA }

◆ bDrawBWBar

int bDrawBWBar = 1
static

◆ bDrawCPUBar

int bDrawCPUBar = 1
static

◆ bDrawXFBars

int bDrawXFBars = 1
static

◆ bDrawRASBar

int bDrawRASBar = 1
static

◆ bDrawBWBarKey

int bDrawBWBarKey
static

◆ lastx

float lastx
static

◆ FramePts

float 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,
}

◆ CPUPts

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

◆ GPPts

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

◆ GameDrawInit

void(* GameDrawInit) () ( )

◆ PERFNumEvents

unsigned long PERFNumEvents
extern

◆ mID

Mtx mID

◆ mProj

Mtx44 mProj
static

◆ pSave

float pSave[7]