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

Macros

#define SPHERE_CNT   32
 

Functions

void pm_init ()
 
void pm_draw ()
 
static void sphere (sphere_t *s)
 
static void draw_sphere (sphere_t *s, int list)
 
static void sphere_frame (void)
 
void do_sphere_test (void)
 
int main (int argc, char **argv)
 

Variables

static float phase = 0.0f
 
static pvr_poly_cxt_t cxt [2]
 
static pvr_poly_hdr_t hdr [2]
 
static sphere_t big_sphere = { 1.2f, 20, 20, NULL }
 
static sphere_t small_sphere = { 0.8f, 20, 20, NULL }
 
static float r = 0
 
pvr_init_params_t params
 
uint8_t dmabuffers [2][4 *1024 *1024]
 

Macro Definition Documentation

◆ SPHERE_CNT

#define SPHERE_CNT   32

Referenced by sphere_frame().

Function Documentation

◆ do_sphere_test()

◆ draw_sphere()

◆ main()

◆ pm_draw()

◆ pm_init()

void pm_init ( )

References fcxt, font, pm_shutdown(), and PVR_LIST_TR_POLY.

Referenced by main().

◆ sphere()

◆ sphere_frame()

Variable Documentation

◆ big_sphere

sphere_t big_sphere = { 1.2f, 20, 20, NULL }
static

Referenced by main(), and sphere_frame().

◆ cxt

pvr_poly_cxt_t cxt[2]
static

Referenced by do_sphere_test().

◆ dmabuffers

uint8_t dmabuffers[2][4 *1024 *1024]

Referenced by main().

◆ hdr

pvr_poly_hdr_t hdr[2]
static

Referenced by do_sphere_test(), and draw_sphere().

◆ params

Initial value:
= {
2560 * 1024,
1,
0,
0,
3,
0
}
#define PVR_BINSIZE_0
0-length (disables the list)
Definition pvr.h:976
#define PVR_BINSIZE_32
32-word (128-byte) length
Definition pvr.h:979

Referenced by main().

◆ phase

float phase = 0.0f
static

Referenced by sphere_frame().

◆ r

float r = 0
static

Referenced by sphere(), and sphere_frame().

◆ small_sphere

sphere_t small_sphere = { 0.8f, 20, 20, NULL }
static

Referenced by main(), and sphere_frame().