KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
3dutils.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include "gp.h"
#include "sintab.h"

Functions

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)
 

Variables

static char strbuf [1024]
 

Function Documentation

◆ 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().

Variable Documentation

◆ strbuf

char strbuf[1024]
static

Referenced by draw_poly_strf().