|
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 | TEXTURE_WIDTH 256 |
| #define | TEXTURE_HEIGHT 256 |
| #define | PALETTE_ENTRY_COUNT 256 |
Functions | |
| static void | draw_screen (void) |
| static float | distance (float x0, float y0, float x1, float y1) |
| static pvr_ptr_t | generate_texture (uint32_t width, uint32_t height) |
| static void | animate_palette (uint32_t frame) |
| static int | check_start (void) |
| int | main (int argc, char **argv) |
Variables | |
| static pvr_poly_hdr_t | hdr |
| #define PALETTE_ENTRY_COUNT 256 |
Referenced by animate_palette().
| #define TEXTURE_HEIGHT 256 |
Referenced by main().
| #define TEXTURE_WIDTH 256 |
Referenced by main().
|
static |
References PALETTE_ENTRY_COUNT, pvr_set_pal_entry(), and uint32_t().
Referenced by main().
|
static |
References CONT_START, MAPLE_FOREACH_BEGIN, MAPLE_FOREACH_END, and MAPLE_FUNC_CONTROLLER.
Referenced by main().
|
static |
References fsqrt().
Referenced by generate_texture().
|
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(), distance(), F_PI, free(), fsin(), pvr_mem_malloc(), pvr_txr_load_ex(), and PVR_TXRLOAD_8BPP.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
References animate_palette(), 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_format(), PVR_TXRFMT_8BPP_PAL, PVR_TXRFMT_PAL8BPP, pvr_wait_ready(), TEXTURE_HEIGHT, TEXTURE_WIDTH, and uint32_t().
|
static |
Referenced by draw_screen(), and main().