KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
nehe26.c File Reference
#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
 

Macro Definition Documentation

◆ MORPHS

#define MORPHS   4

◆ NOT_LAST

#define NOT_LAST   !(state->buttons & last)

◆ SCREEN_HEIGHT

#define SCREEN_HEIGHT   400

◆ SCREEN_WIDTH

#define SCREEN_WIDTH   640

Function Documentation

◆ calculate()

vertex calculate ( int i)

References dest, sour, and steps.

◆ draw_gl()

void draw_gl ( void )

◆ initGL()

int initGL ( GLvoid )

◆ main()

◆ objallocate()

void objallocate ( object * k,
int n )

References k, and malloc().

◆ objfree()

void objfree ( object * k)

References free(), and k.

◆ objload()

void objload ( char * name,
object * k )

References k, maxver, objallocate(), printf, and rx.

◆ Quit()

void Quit ( int returnCode)

References helper, morph1, morph2, morph3, morph4, and objfree().

Variable Documentation

◆ cx

GLfloat cx

◆ cy

GLfloat cy

◆ cz

GLfloat cz = -15

◆ dest

object * dest

◆ helper

object helper

◆ key

int key = 1

◆ maxver

int maxver

◆ morph

bool morph = false

◆ morph1

object morph1

◆ morph2

object morph2

◆ morph3

object morph3

◆ morph4

object morph4

◆ sour

object * sour

◆ step

int step = 0

◆ steps

int steps = 200

◆ xrot

GLfloat xrot

◆ xspeed

GLfloat xspeed

◆ yrot

GLfloat yrot

◆ yspeed

GLfloat yspeed

◆ zrot

GLfloat zrot

◆ zspeed

GLfloat zspeed