|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <stdio.h>#include <time.h>#include <dc/pvr.h>#include <dc/maple.h>#include <dc/maple/controller.h>Functions | |
| void | move_polys (void) |
| void | draw_one_poly (polyplace_t *p) |
| void | draw_one_textured_poly (polyplace_t *p) |
| void | draw_frame (void) |
| void | draw_textured (void) |
| int | main (int argc, char **argv) |
Variables | |
| static const long unsigned int | button_delay = ((CLOCKS_PER_SEC * 200) / 1000) |
| polyplace_t | polys [6] |
| int | to_texture = 1 |
| pvr_ptr_t | d_texture |
| uint32_t | tx_x = 1024 |
| uint32_t | tx_y = 512 |
| pvr_init_params_t | pvr_params |
| void draw_frame | ( | void | ) |
References cxt, d_texture, draw_one_poly(), move_polys(), polys, pvr_list_begin(), pvr_list_finish(), PVR_LIST_OP_POLY, pvr_poly_compile(), pvr_poly_cxt_col(), pvr_prim(), pvr_scene_begin(), pvr_scene_begin_txr(), pvr_scene_finish(), pvr_wait_ready(), to_texture, tx_x, and tx_y.
Referenced by draw_textured(), and main().
| void draw_one_poly | ( | polyplace_t * | p | ) |
References pvr_vertex_t::argb, pvr_vertex_t::flags, pvr_vertex_t::oargb, PVR_CMD_VERTEX, PVR_CMD_VERTEX_EOL, 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 draw_frame().
| void draw_one_textured_poly | ( | polyplace_t * | p | ) |
References pvr_vertex_t::argb, pvr_vertex_t::flags, pvr_vertex_t::oargb, PVR_CMD_VERTEX, PVR_CMD_VERTEX_EOL, 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 draw_textured().
| void draw_textured | ( | void | ) |
References cxt, d_texture, draw_frame(), draw_one_textured_poly(), hdr, move_polys(), polys, PVR_FILTER_NONE, pvr_list_begin(), pvr_list_finish(), PVR_LIST_OP_POLY, pvr_poly_compile(), pvr_poly_cxt_txr(), pvr_prim(), pvr_scene_begin(), pvr_scene_finish(), PVR_TXRFMT_NONTWIDDLED, PVR_TXRFMT_RGB565, and pvr_wait_ready().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
References button_delay, cont_state_t::buttons, CONT_A, CONT_B, CONT_START, counter, d_texture, draw_frame(), draw_textured(), end, maple_dev_status(), maple_enum_type(), MAPLE_FUNC_CONTROLLER, NULL, printf, pvr_get_stats(), pvr_init(), pvr_mem_free(), pvr_mem_malloc(), pvr_params, pvr_set_bg_color(), pvr_shutdown(), start(), stats(), to_texture, and uint32_t().
| void move_polys | ( | void | ) |
References polys.
Referenced by draw_frame(), and draw_textured().
|
static |
Referenced by main().
| pvr_ptr_t d_texture |
Referenced by draw_frame(), draw_textured(), and main().
| polyplace_t polys[6] |
Referenced by draw_frame(), draw_textured(), and move_polys().
| pvr_init_params_t pvr_params |
Referenced by main().
| int to_texture = 1 |
Referenced by draw_frame(), and main().
| uint32_t tx_x = 1024 |
Referenced by draw_frame().
| uint32_t tx_y = 512 |
Referenced by draw_frame().