KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
bump.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <errno.h>
#include <dc/pvr.h>
#include <dc/maple.h>
#include <dc/fmath.h>
#include <dc/maple/controller.h>
#include <kos/init.h>
#include <kmg/kmg.h>

Macros

#define SIZE   256
 
#define CLAMP(low, high, value)
 

Functions

static pvr_ptr_t load_texture (const char fn[])
 
static pvr_ptr_t load_kmg (const char fn[])
 
static void setup (void)
 
static void switch_textured (void)
 
static int check_start (void)
 
static void do_frame (void)
 
int main (int argc, char *argv[])
 

Variables

static pvr_sprite_txr_t sprites [2]
 
static pvr_sprite_hdr_t shdr [2]
 
static float bumpiness = 0.5f
 
static pvr_ptr_t bump
 
static pvr_ptr_t txr
 
static int textured = 1
 
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().

◆ SIZE

#define SIZE   256

Referenced by load_texture().

Function Documentation

◆ check_start()

◆ do_frame()

◆ load_kmg()

static pvr_ptr_t load_kmg ( const char fn[])
static

◆ load_texture()

static pvr_ptr_t load_texture ( const char fn[])
static

◆ main()

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

◆ setup()

◆ switch_textured()

Variable Documentation

◆ bump

pvr_ptr_t bump
static

Referenced by main(), and setup().

◆ bumpiness

float bumpiness = 0.5f
static

Referenced by check_start(), and do_frame().

◆ 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().

◆ shdr

pvr_sprite_hdr_t shdr[2]
static

Referenced by do_frame(), setup(), and switch_textured().

◆ sprites

pvr_sprite_txr_t sprites[2]
static

Referenced by do_frame(), and setup().

◆ textured

int textured = 1
static

Referenced by switch_textured().

◆ txr

pvr_ptr_t txr
static