KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
bubbles.c File Reference
#include <kos.h>
#include <math.h>
#include <plx/matrix.h>
#include <plx/prim.h>

Macros

#define SPHERE_CNT   12
 

Functions

static void sphere (float radius, int slices, int stacks)
 
static void sphere_frame_opaque (void)
 
static void sphere_frame_trans (void)
 
void do_sphere_test (void)
 
int main (int argc, char **argv)
 

Variables

static float phase = 0.0f
 
static pvr_poly_cxt_t cxt
 
static pvr_poly_hdr_t hdr
 
static plx_dr_state_t dr_state
 
static float r = 0
 
pvr_init_params_t params
 

Macro Definition Documentation

◆ SPHERE_CNT

#define SPHERE_CNT   12

Function Documentation

◆ do_sphere_test()

◆ main()

int main ( int argc,
char ** argv )

◆ sphere()

static void sphere ( float radius,
int slices,
int stacks )
static

◆ sphere_frame_opaque()

static void sphere_frame_opaque ( void )
static

◆ sphere_frame_trans()

static void sphere_frame_trans ( void )
static

Variable Documentation

◆ cxt

◆ dr_state

plx_dr_state_t dr_state
static

Referenced by do_frame(), and sphere().

◆ hdr

pvr_poly_hdr_t hdr
static

Referenced by do_sphere_test(), and sphere().

◆ params

Initial value:
= {
512 * 1024,
0,
0,
0,
3,
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

Referenced by main().

◆ phase

float phase = 0.0f
static

◆ r