|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <kos.h>#include <stdlib.h>#include <stdbool.h>#include <GL/gl.h>#include <GL/glu.h>#include <GL/glkos.h>Macros | |
| #define | SCREEN_WIDTH 640 |
| #define | SCREEN_HEIGHT 400 |
| #define | MORPHS 4 |
| #define | NOT_LAST !(state->buttons & last) |
Functions | |
| bool | objallocate (object *k, size_t n) |
| void | objfree (object *k) |
| void | Quit (void) |
| bool | objload (char *name, object *k) |
| vertex | calculate (int i) |
| bool | initGL (GLvoid) |
| void | draw_gl (void) |
| int | main (int argc, char **argv) |
Variables | |
| GLfloat | xrot |
| GLfloat | yrot |
| GLfloat | zrot |
| GLfloat | cx |
| GLfloat | cy |
| GLfloat | cz = -15 |
| GLfloat | xspeed |
| GLfloat | yspeed |
| GLfloat | zspeed |
| int | key = 1 |
| int | step = 0 |
| int | steps = 200 |
| bool | morph = false |
| size_t | maxver |
| object | morph1 |
| object | morph2 |
| object | morph3 |
| object | morph4 |
| object | helper |
| object * | sour |
| object * | dest |
| #define MORPHS 4 |
| #define NOT_LAST !(state->buttons & last) |
Referenced by main().
| #define SCREEN_HEIGHT 400 |
Referenced by initGL().
| #define SCREEN_WIDTH 640 |
Referenced by initGL().
| void draw_gl | ( | void | ) |
| bool initGL | ( | GLvoid | ) |
References dest, helper, maxver, morph1, morph2, morph3, morph4, objallocate(), objload(), SCREEN_HEIGHT, SCREEN_WIDTH, and sour.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
References cont_state_t::buttons, CONT_A, CONT_B, CONT_DPAD_DOWN, CONT_DPAD_LEFT, CONT_DPAD_RIGHT, CONT_DPAD_UP, CONT_START, CONT_X, CONT_Y, dest, draw_gl(), initGL(), cont_state_t::ltrig, maple_dev_status(), maple_enum_type(), MAPLE_FUNC_CONTROLLER, morph, morph1, morph2, morph3, morph4, NOT_LAST, printf, Quit(), cont_state_t::rtrig, xrot, xspeed, yrot, yspeed, zrot, and zspeed.
| bool objallocate | ( | object * | k, |
| size_t | n ) |
| bool objload | ( | char * | name, |
| object * | k ) |
| void Quit | ( | void | ) |
| GLfloat cx |
Referenced by draw_gl().
| GLfloat cy |
Referenced by draw_gl().
| GLfloat cz = -15 |
Referenced by draw_gl().
| object * dest |
| int key = 1 |
Referenced by basic_typing(), kbd_key_name(), and on_key_event().
| object * sour |
Referenced by calculate(), draw_gl(), and initGL().
| int step = 0 |
Referenced by draw_gl().
| int steps = 200 |
Referenced by calculate(), and draw_gl().