KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
shadow.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <dc/pvr.h>
#include <dc/maple.h>
#include <dc/maple/controller.h>

Macros

#define NUM_POLYS   10
 
#define CLAMP(low, high, value)
 

Functions

void setup (void)
 
int check_start (void)
 
void do_frame (void)
 
int main (int argc, char *argv[])
 

Variables

static pvr_vertex_t verts [NUM_POLYS *4]
 
static pvr_poly_hdr_t phdr
 
static pvr_mod_hdr_t mhdr
 
static pvr_mod_hdr_t mhdr2
 
static float mx = 320.0f
 
static float my = 240.0f
 
static pvr_list_t list = PVR_LIST_OP_POLY
 
static float shadow = 0.5f
 
static pvr_init_params_t pvr_params
 

Macro Definition Documentation

◆ CLAMP

#define CLAMP ( low,
high,
value )
Value:
((value) < (low) ? (low) : ((value) > (high) ? (high) : (value)))

Referenced by check_start().

◆ NUM_POLYS

#define NUM_POLYS   10

Referenced by do_frame(), and setup().

Function Documentation

◆ check_start()

◆ do_frame()

◆ main()

int main ( int argc,
char * argv[] )

◆ setup()

Variable Documentation

◆ list

◆ mhdr

pvr_mod_hdr_t mhdr
static

Referenced by do_frame(), and setup().

◆ mhdr2

pvr_mod_hdr_t mhdr2
static

Referenced by do_frame(), and setup().

◆ mx

float mx = 320.0f
static

Referenced by check_start(), and do_frame().

◆ my

float my = 240.0f
static

Referenced by check_start(), and do_frame().

◆ phdr

pvr_poly_hdr_t phdr
static

Referenced by do_frame(), and setup().

◆ pvr_params

pvr_init_params_t pvr_params
static
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

Referenced by main().

◆ shadow

float shadow = 0.5f
static

Referenced by check_start(), and main().

◆ verts

pvr_vertex_t verts[NUM_POLYS *4]
static

Referenced by do_frame(), and setup().