KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
texture_render.c File Reference
#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
 

Function Documentation

◆ draw_frame()

◆ draw_one_poly()

◆ draw_one_textured_poly()

◆ draw_textured()

◆ main()

◆ move_polys()

void move_polys ( void )

References polys.

Referenced by draw_frame(), and draw_textured().

Variable Documentation

◆ button_delay

const long unsigned int button_delay = ((CLOCKS_PER_SEC * 200) / 1000)
static

Referenced by main().

◆ d_texture

pvr_ptr_t d_texture

Referenced by draw_frame(), draw_textured(), and main().

◆ polys

polyplace_t polys[6]
Initial value:
= {
{ 16.0f, 0.0f, 10.0f, 3.0f, 5.0f },
{ 624.0f, 0.0f, 12.0f, -3.0f, 7.0f },
{ 24.0f, 300.0f, 13.0f, 3.0f, -7.0f },
{ 0.0f, 16.0f, 16.0f, 5.0f, 3.0f },
{ 0.0f, 364.0f, 18.0f, 7.0f, -3.0f },
{ 480.0f, 24.0f, 19.0f, -7.0f, 3.0f },
}

Referenced by draw_frame(), draw_textured(), and move_polys().

◆ pvr_params

pvr_init_params_t pvr_params
Initial value:
= {
64 * 1024, 0, 0, 0, 0, 0
}
#define PVR_BINSIZE_16
16-word (64-byte) length
Definition pvr.h:978
#define PVR_BINSIZE_0
0-length (disables the list)
Definition pvr.h:976

Referenced by main().

◆ to_texture

int to_texture = 1

Referenced by draw_frame(), and main().

◆ tx_x

uint32_t tx_x = 1024

Referenced by draw_frame().

◆ tx_y

uint32_t tx_y = 512

Referenced by draw_frame().