|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <kos.h>#include <math.h>#include <assert.h>#include <stdlib.h>#include <plx/matrix.h>#include <plx/prim.h>#include <plx/context.h>Macros | |
| #define | SPHERE_CNT 32 |
Functions | |
| void | pm_init () |
| void | pm_draw () |
| static void | sphere (sphere_t *s) |
| static void | draw_sphere (sphere_t *s, int list) |
| static void | sphere_frame (void) |
| void | do_sphere_test (void) |
| int | main (int argc, char **argv) |
Variables | |
| static float | phase = 0.0f |
| static pvr_poly_cxt_t | cxt [2] |
| static pvr_poly_hdr_t | hdr [2] |
| static sphere_t | big_sphere = { 1.2f, 20, 20, NULL } |
| static sphere_t | small_sphere = { 0.8f, 20, 20, NULL } |
| static float | r = 0 |
| pvr_init_params_t | params |
| uint8_t | dmabuffers [2][4 *1024 *1024] |
| #define SPHERE_CNT 32 |
Referenced by sphere_frame().
| void do_sphere_test | ( | void | ) |
References CONT_START, pvr_poly_cxt_t::culling, cxt, pvr_poly_cxt_t::gen, hdr, MAPLE_FOREACH_BEGIN, MAPLE_FOREACH_END, MAPLE_FUNC_CONTROLLER, PVR_CULLING_NONE, PVR_LIST_OP_POLY, PVR_LIST_TR_POLY, pvr_poly_compile(), pvr_poly_cxt_col(), pvr_set_bg_color(), and sphere_frame().
Referenced by main().
|
static |
References assert, hdr, irq_disable(), irq_enable(), list, mat_transform_sq(), NULL, PVR_LIST_OP_POLY, pvr_list_prim(), pvr_vertbuf_tail(), pvr_vertbuf_written(), s, sq_lock(), SQ_MASK_DEST_ADDR, and sq_unlock().
Referenced by sphere_frame().
| int main | ( | int | argc, |
| char ** | argv ) |
References big_sphere, DBG_INFO, dbglog, dmabuffers, do_sphere_test(), free(), params, pm_init(), printf, pvr_get_stats(), pvr_init(), PVR_LIST_OP_POLY, PVR_LIST_TR_POLY, pvr_set_vertbuf(), small_sphere, and stats().
| void pm_draw | ( | ) |
References fcxt, NULL, pct(), pm_drawbar(), pvr_get_stats(), pvr_list_begin(), pvr_list_finish(), PVR_LIST_TR_POLY, and stats().
Referenced by sphere_frame().
| void pm_init | ( | ) |
References fcxt, font, pm_shutdown(), and PVR_LIST_TR_POLY.
Referenced by main().
|
static |
References aligned_alloc(), pvr_vertex_t::argb, F_PI, fcos(), pvr_vertex_t::flags, fsin(), NULL, printf, PVR_CMD_VERTEX, PVR_CMD_VERTEX_EOL, r, s, pvr_vertex_t::x, pvr_vertex_t::y, and pvr_vertex_t::z.
Referenced by sphere_frame().
|
static |
References big_sphere, draw_sphere(), F_PI, fcos(), fsin(), phase, pm_draw(), PVR_LIST_OP_POLY, PVR_LIST_TR_POLY, pvr_scene_begin(), pvr_scene_finish(), pvr_wait_ready(), r, small_sphere, sphere(), and SPHERE_CNT.
Referenced by do_sphere_test().
|
static |
Referenced by main(), and sphere_frame().
|
static |
Referenced by do_sphere_test().
| uint8_t dmabuffers[2][4 *1024 *1024] |
Referenced by main().
|
static |
Referenced by do_sphere_test(), and draw_sphere().
| pvr_init_params_t params |
Referenced by main().
|
static |
Referenced by sphere_frame().
|
static |
Referenced by sphere(), and sphere_frame().
|
static |
Referenced by main(), and sphere_frame().