KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
gp.h File Reference
#include <kos.h>
#include <math.h>

Go to the source code of this file.

Macros

#define msin(angle)
 
#define mcos(angle)
 

Functions

void bkg_setup (void)
 
void bkg_render (void)
 
void setup_util_texture (void)
 
void rotate (int zang, int xang, int yang, float *x, float *y, float *z)
 
void draw_poly_mouse (int ptrx, int ptry, float alpha)
 
void draw_poly_char (float x1, float y1, float z1, float a, float r, float g, float b, int c)
 
void draw_poly_strf (float x1, float y1, float z1, float a, float r, float g, float b, char *fmt,...)
 
void draw_poly_box (float x1, float y1, float x2, float y2, float z, float a1, float r1, float g1, float b1, float a2, float r2, float g2, float b2)
 
void song_menu_render (void)
 

Variables

pvr_ptr_t util_texture
 
pvr_poly_hdr_t util_txr_hdr
 

Macro Definition Documentation

◆ mcos

#define mcos ( angle)
Value:
fcos((angle) * 2 * F_PI / 256)
static __pure float fcos(float r)
Floating point cosine.
Definition fmath.h:65
#define F_PI
PI constant (if you don't want full math.h)
Definition fmath_base.h:32

◆ msin

#define msin ( angle)
Value:
fsin((angle) * 2 * F_PI / 256)
static float __pure fsin(float r)
Floating point sine.
Definition fmath.h:56

Function Documentation

◆ bkg_render()

◆ bkg_setup()

void bkg_setup ( void )

References chktexture, pvr_mem_malloc(), texture, x, and y.

Referenced by main().

◆ draw_poly_box()

void draw_poly_box ( float x1,
float y1,
float x2,
float y2,
float z,
float a1,
float r1,
float g1,
float b1,
float a2,
float r2,
float g2,
float b2 )

◆ draw_poly_char()

void draw_poly_char ( float x1,
float y1,
float z1,
float a,
float r,
float g,
float b,
int c )

◆ draw_poly_mouse()

◆ draw_poly_strf()

void draw_poly_strf ( float x1,
float y1,
float z1,
float a,
float r,
float g,
float b,
char * fmt,
... )

References draw_poly_char(), pvr_prim(), r, s, strbuf, and util_txr_hdr.

Referenced by draw_listing(), and main().

◆ rotate()

void rotate ( int zang,
int xang,
int yang,
float * x,
float * y,
float * z )

References mcos, msin, x, xang, y, yang, and z.

Referenced by draw_floor_poly(), and main().

◆ setup_util_texture()

◆ song_menu_render()

Variable Documentation

◆ util_texture

pvr_ptr_t util_texture
extern

Referenced by setup_util_texture().

◆ util_txr_hdr

pvr_poly_hdr_t util_txr_hdr
extern