|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#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 |
| #define CLAMP | ( | low, | |
| high, | |||
| value ) |
Referenced by check_start().
| #define SIZE 256 |
Referenced by load_texture().
|
static |
References bumpiness, cont_state_t::buttons, CLAMP, CONT_A, CONT_START, cont_state_t::joyy, maple_dev_status(), maple_enum_type(), MAPLE_FUNC_CONTROLLER, and switch_textured().
Referenced by main().
|
static |
References pvr_poly_hdr_t::argb, bumpiness, F_PI, pvr_poly_hdr_t::oargb, pvr_list_begin(), pvr_list_finish(), PVR_LIST_OP_POLY, PVR_LIST_PT_POLY, pvr_pack_bump(), pvr_prim(), pvr_scene_begin(), pvr_scene_finish(), pvr_wait_ready(), shdr, and sprites.
Referenced by main().
|
static |
References kos_img_t::byte_count, kos_img_free(), NULL, printf, pvr_mem_malloc(), and pvr_txr_load_kimg().
Referenced by setup().
|
static |
References NULL, printf, pvr_mem_free(), pvr_mem_malloc(), and SIZE.
| int main | ( | int | argc, |
| char * | argv[] ) |
References bump, check_start(), do_frame(), NULL, printf, pvr_init(), pvr_mem_free(), pvr_params, setup(), and txr.
|
static |
References pvr_sprite_txr_t::auv, pvr_sprite_txr_t::ax, pvr_sprite_txr_t::ay, pvr_sprite_txr_t::az, pvr_poly_cxt_t::blend, bump, pvr_sprite_txr_t::buv, pvr_sprite_txr_t::bx, pvr_sprite_txr_t::by, pvr_sprite_txr_t::bz, pvr_sprite_txr_t::cuv, pvr_sprite_txr_t::cx, cxt, pvr_sprite_txr_t::cy, pvr_sprite_txr_t::cz, pvr_poly_cxt_t::dst, pvr_sprite_txr_t::dummy, pvr_sprite_txr_t::dx, pvr_sprite_txr_t::dy, pvr_poly_cxt_t::env, pvr_sprite_txr_t::flags, pvr_poly_cxt_t::gen, load_kmg(), load_texture(), PVR_BLEND_DESTCOLOR, PVR_BLEND_ZERO, PVR_CMD_VERTEX_EOL, PVR_FILTER_NONE, PVR_LIST_OP_POLY, PVR_LIST_PT_POLY, pvr_mem_free(), PVR_PACK_16BIT_UV(), PVR_SPECULAR_ENABLE, pvr_sprite_compile(), pvr_sprite_cxt_txr(), PVR_TXRENV_DECAL, PVR_TXRFMT_BUMP, PVR_TXRFMT_RGB565, PVR_TXRFMT_TWIDDLED, PVR_TXRFMT_VQ_ENABLE, shdr, pvr_poly_cxt_t::specular, sprites, pvr_poly_cxt_t::src, pvr_poly_cxt_t::txr, and txr.
Referenced by main().
|
static |
References pvr_poly_cxt_t::blend, cxt, pvr_poly_cxt_t::dst, PVR_BLEND_DESTCOLOR, PVR_BLEND_ZERO, PVR_FILTER_NONE, PVR_LIST_PT_POLY, pvr_sprite_compile(), pvr_sprite_cxt_col(), pvr_sprite_cxt_txr(), PVR_TXRFMT_RGB565, PVR_TXRFMT_TWIDDLED, PVR_TXRFMT_VQ_ENABLE, shdr, pvr_poly_cxt_t::src, textured, and txr.
Referenced by check_start().
|
static |
Referenced by check_start(), and do_frame().
|
static |
Referenced by main().
|
static |
Referenced by do_frame(), setup(), and switch_textured().
|
static |
Referenced by do_frame(), and setup().
|
static |
Referenced by switch_textured().