KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
tristripmark.c File Reference
#include <kos.h>
#include <GL/gl.h>
#include <GL/glkos.h>
#include <stdlib.h>
#include <time.h>

Enumerations

enum  { PHASE_HALVE , PHASE_INCR , PHASE_DECR , PHASE_FINAL }
 

Functions

void running_stats (void)
 
void stats (void)
 
int check_start (void)
 
void setup (void)
 
void do_frame (void)
 
void switch_tests (int ppf)
 
void check_switch (void)
 
int main (int argc, char **argv)
 

Variables

pvr_init_params_t pvr_params
 
int polycnt
 
int phase = PHASE_HALVE
 
float avgfps = -1
 
pvr_poly_hdr_t hdr
 
time_t begin
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PHASE_HALVE 
PHASE_INCR 
PHASE_DECR 
PHASE_FINAL 

Function Documentation

◆ check_start()

int check_start ( void )

◆ check_switch()

void check_switch ( void )

◆ do_frame()

void do_frame ( void )

References polycnt, x, y, and z.

Referenced by main().

◆ main()

int main ( int argc,
char ** argv )

◆ running_stats()

void running_stats ( void )

References avgfps, pvr_get_stats(), and stats().

Referenced by main().

◆ setup()

void setup ( void )

Referenced by main().

◆ stats()

void stats ( void )

References DBG_INFO, dbglog, pvr_get_stats(), and stats().

Referenced by main(), running_stats(), and stats().

◆ switch_tests()

void switch_tests ( int ppf)

References avgfps, polycnt, and printf.

Referenced by check_switch(), and main().

Variable Documentation

◆ avgfps

float avgfps = -1

◆ begin

time_t begin

Referenced by check_switch(), and main().

◆ hdr

◆ phase

int phase = PHASE_HALVE

Referenced by check_switch().

◆ polycnt

int polycnt

◆ pvr_params

pvr_init_params_t pvr_params
Initial value:
= {
512 * 1024, 0, 0, 0, 0, 0
}
#define PVR_BINSIZE_16
16-word (64-byte) length
Definition pvr.h:978
#define PVR_BINSIZE_0
0-length (disables the list)
Definition pvr.h:976