|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <kos.h>#include <stdlib.h>#include <stdbool.h>#include <KGL/gl.h>#include <KGL/glu.h>#include <KGL/glut.h>Macros | |
| #define | SCREEN_WIDTH 640 |
| #define | SCREEN_HEIGHT 400 |
| #define | MORPHS 4 |
| #define | NOT_LAST !(state->buttons & last) |
Functions | |
| void | objallocate (object *k, int n) |
| void | objfree (object *k) |
| void | Quit (int returnCode) |
| void | objload (char *name, object *k) |
| vertex | calculate (int i) |
| int | 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 |
| int | maxver |
| object | morph1 |
| object | morph2 |
| object | morph3 |
| object | morph4 |
| object | helper |
| object * | sour |
| object * | dest |
| #define MORPHS 4 |
| #define NOT_LAST !(state->buttons & last) |
| #define SCREEN_HEIGHT 400 |
| #define SCREEN_WIDTH 640 |
| void draw_gl | ( | void | ) |
| int initGL | ( | GLvoid | ) |
References dest, helper, maxver, morph1, morph2, morph3, morph4, objallocate(), objload(), SCREEN_HEIGHT, SCREEN_WIDTH, and sour.
| 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.
| void objload | ( | char * | name, |
| object * | k ) |
References k, maxver, objallocate(), printf, and rx.
| GLfloat cx |
| GLfloat cy |
| GLfloat cz = -15 |
| object * dest |
| object helper |
| int key = 1 |
| int maxver |
| bool morph = false |
| object morph1 |
| object morph2 |
| object morph3 |
| object morph4 |
| object * sour |
| int step = 0 |
| int steps = 200 |
| GLfloat xrot |
| GLfloat xspeed |
| GLfloat yrot |
| GLfloat yspeed |
| GLfloat zrot |
| GLfloat zspeed |