KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
nehe09.c File Reference
#include <kos.h>
#include <stdlib.h>
#include <KGL/gl.h>
#include <KGL/glu.h>
#include <KGL/glut.h>

Macros

#define NUM_STARS   50 /* Number Of Stars To Draw */
 

Functions

GLuint glTextureLoadPVR (char *fname, unsigned char isMipMapped, unsigned char glMipMap)
 
void draw_gl (void)
 
int main (int argc, char **argv)
 

Variables

static stars star [NUM_STARS]
 
static GLboolean twinkle
 
static GLfloat zoom = -15.0f
 
static GLfloat tilt = 90.0f
 
static GLfloat spin
 
static GLuint loop
 
static GLuint texture [1]
 

Macro Definition Documentation

◆ NUM_STARS

#define NUM_STARS   50 /* Number Of Stars To Draw */

Function Documentation

◆ draw_gl()

void draw_gl ( void )

References loop, NUM_STARS, r, spin, star, texture, tilt, twinkle, and zoom.

◆ glTextureLoadPVR()

GLuint glTextureLoadPVR ( char * fname,
unsigned char isMipMapped,
unsigned char glMipMap )
extern

◆ main()

Variable Documentation

◆ loop

GLuint loop
static

◆ spin

GLfloat spin
static

◆ star

stars star[NUM_STARS]
static

◆ texture

GLuint texture[1]
static

◆ tilt

GLfloat tilt = 90.0f
static

◆ twinkle

GLboolean twinkle
static

◆ zoom

GLfloat zoom = -15.0f
static