|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <stdlib.h>#include <math.h>#include <dc/pvr.h>#include <dc/maple.h>#include <dc/fmath.h>#include <dc/maple/controller.h>Macros | |
| #define | WORMHOLE_WIDTH 256 |
| #define | WORMHOLE_HEIGHT 256 |
Functions | |
| static void | draw_screen () |
| static pvr_ptr_t | generate_texture (uint32_t width, uint32_t height) |
| static void | animate_wormhole (uint32_t frame) |
| static int | check_start (void) |
| int | main (int argc, char **argv) |
Variables | |
| static const uint32_t | wormhole_palette [32] |
| static pvr_poly_hdr_t | hdr |
| #define WORMHOLE_HEIGHT 256 |
Referenced by main().
| #define WORMHOLE_WIDTH 256 |
Referenced by main().
|
static |
References pvr_set_pal_entry(), and wormhole_palette.
Referenced by main().
|
static |
References CONT_START, MAPLE_FOREACH_BEGIN, MAPLE_FOREACH_END, and MAPLE_FUNC_CONTROLLER.
Referenced by main().
|
static |
References pvr_vertex_t::argb, pvr_vertex_t::flags, hdr, pvr_vertex_t::oargb, PVR_CMD_VERTEX, PVR_CMD_VERTEX_EOL, PVR_PACK_COLOR, pvr_prim(), pvr_vertex_t::u, pvr_vertex_t::v, vert, pvr_vertex_t::x, pvr_vertex_t::y, and pvr_vertex_t::z.
Referenced by main().
References calloc(), F_PI, free(), pvr_mem_malloc(), pvr_txr_load_ex(), PVR_TXRLOAD_8BPP, x, and y.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
References animate_wormhole(), check_start(), cxt, draw_screen(), generate_texture(), hdr, PVR_FILTER_BILINEAR, pvr_init_defaults(), pvr_list_begin(), pvr_list_finish(), PVR_LIST_OP_POLY, pvr_mem_free(), PVR_PAL_ARGB8888, pvr_poly_compile(), pvr_poly_cxt_txr(), pvr_scene_begin(), pvr_scene_finish(), pvr_set_pal_entry(), pvr_set_pal_format(), PVR_TXRFMT_8BPP_PAL, PVR_TXRFMT_PAL8BPP, pvr_wait_ready(), uint32_t(), WORMHOLE_HEIGHT, wormhole_palette, and WORMHOLE_WIDTH.
|
static |
Referenced by draw_screen(), and main().
|
static |
Referenced by animate_wormhole(), and main().