|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <kos.h>#include <KGL/gl.h>#include <KGL/glu.h>#include <KGL/glut.h>#include "vector.h"#include "input.h"#include "texture.h"#include "timer.h"#include "font.h"Macros | |
| #define | LGAP 13 |
Functions | |
| void | glSetCameraPosition (vector3f campos, vector3f camdst) |
| void | draw_gl_cube (float x, float y, float z, uint32_t color) |
| void | draw_gl (void) |
| void | draw_gl2 (void) |
| void | draw_gl3 (void) |
| void | draw_gl4 (void) |
| void | draw_gl5 (void) |
| void | draw_gl6 (void) |
| void | draw_gl7 (void) |
| void | draw_gl8 (void) |
| void | draw_gl9 (void) |
| void | draw_gl10 (void) |
| void | GPU_Stats (void) |
| int | InputCb (void) |
| int | main (int argc, const char *argv[]) |
Variables | |
| static GLfloat | z = -5.0f |
| static GLuint | texture [2] |
| static vector3f | up = { 0.0f, 1.0f, 0.0f } |
| static vector3f | camFrom = { -74.0f, 10.0f, 0.0f } |
| static vector3f | camTo = { -74.0f, 10.0f, 10.0f } |
| static Fps | fps = {45, 0, 0, 0, 0} |
| static Font * | font |
| static unsigned char | LE [8] = {0, 1, 0, 0, 0, 0, 0, 0} |
| #define LGAP 13 |
Referenced by draw_gl(), draw_gl10(), draw_gl2(), draw_gl3(), draw_gl4(), draw_gl5(), draw_gl6(), draw_gl7(), draw_gl8(), and draw_gl9().
| void draw_gl_cube | ( | float | x, |
| float | y, | ||
| float | z, | ||
| uint32_t | color ) |
| void GPU_Stats | ( | void | ) |
References fps, printf, pvr_get_stats(), and stats().
Referenced by main().
| int InputCb | ( | void | ) |
References cont_state_t::buttons, CONT_A, CONT_B, CONT_START, CONT_X, CONT_Y, LE, cont_state_t::ltrig, maple_dev_status(), maple_enum_type(), MAPLE_FUNC_CONTROLLER, and cont_state_t::rtrig.
Referenced by main().
| int main | ( | int | argc, |
| const char * | argv[] ) |
References camFrom, camTo, draw_gl(), draw_gl10(), draw_gl2(), draw_gl3(), draw_gl4(), draw_gl5(), draw_gl6(), draw_gl7(), draw_gl8(), draw_gl9(), draw_gl_cube(), font, FontInit(), FontPrintString(), fps, GetTime(), glSetCameraPosition(), glTextureLoadPVR(), GPU_Stats(), InputCallback(), InputCb(), LE, PVR_PACK_COLOR, start(), and texture.
|
static |
Referenced by GPU_Stats(), and main().
|
static |
Referenced by draw_gl(), draw_gl10(), draw_gl2(), draw_gl3(), draw_gl4(), draw_gl5(), draw_gl6(), draw_gl7(), draw_gl8(), draw_gl9(), draw_gl_cube(), and main().
|
static |
Referenced by glSetCameraPosition().
|
static |
Referenced by draw_gl(), draw_gl10(), draw_gl2(), draw_gl3(), draw_gl4(), draw_gl5(), draw_gl6(), draw_gl7(), draw_gl8(), draw_gl9(), and draw_gl_cube().