KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
gp.h
Go to the documentation of this file.
1#ifndef __GP_H
2#define __GP_H
3
4#include <kos.h>
5#include <math.h>
6
7/* Floating-point Sin/Cos; 256 angles, -1.0 to 1.0 */
8#define msin(angle) fsin((angle) * 2 * F_PI / 256)
9#define mcos(angle) fcos((angle) * 2 * F_PI / 256)
10
11/* bkg.c */
12void bkg_setup(void);
13void bkg_render(void);
14
15/* texture.c */
18void setup_util_texture(void);
19
20/* 3dutils.c */
21void rotate(int zang, int xang, int yang, float *x, float *y, float *z);
22void draw_poly_mouse(int ptrx, int ptry, float alpha);
23void draw_poly_char(float x1, float y1, float z1, float a, float r, float g, float b, int c);
24void draw_poly_strf(float x1, float y1, float z1, float a, float r, float g, float b, char *fmt, ...);
25void draw_poly_box(float x1, float y1, float x2, float y2, float z,
26 float a1, float r1, float g1, float b1,
27 float a2, float r2, float g2, float b2);
28
29/* songmenu.c */
30void song_menu_render(void);
31
32#endif /* __GP_H */
static float r
Definition bubbles.c:95
static GLfloat z
Definition nehe08.c:30
void bkg_setup(void)
Definition bkg.c:15
void song_menu_render(void)
Definition songmenu.c:423
void rotate(int zang, int xang, int yang, float *x, float *y, float *z)
Definition 3dutils.c:14
void draw_poly_strf(float x1, float y1, float z1, float a, float r, float g, float b, char *fmt,...)
Definition 3dutils.c:113
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)
Definition 3dutils.c:138
pvr_poly_hdr_t util_txr_hdr
Definition texture.c:11
void setup_util_texture(void)
Definition texture.c:12
void draw_poly_char(float x1, float y1, float z1, float a, float r, float g, float b, int c)
Definition 3dutils.c:71
pvr_ptr_t util_texture
Definition texture.c:10
void draw_poly_mouse(int ptrx, int ptry, float alpha)
Definition 3dutils.c:34
void bkg_render(void)
Definition bkg.c:116
void * pvr_ptr_t
PVR texture memory pointer.
Definition pvr_mem.h:45
Include everything KOS has to offer!
Prototypes for optimized math functions written in ASM.
short yang
Definition plasma.c:53
short xang
Definition plasma.c:53
static GLint y
Definition scissor.c:38
static GLint x
Definition scissor.c:38
PVR polygon header.
Definition pvr_header.h:309