KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
nehe09.c File Reference
#include <kos.h>
#include <stdlib.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glkos.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 */

Referenced by draw_gl(), and main().

Function Documentation

◆ draw_gl()

void draw_gl ( void )

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

Referenced by main().

◆ glTextureLoadPVR()

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

Referenced by main().

◆ main()

Variable Documentation

◆ loop

GLuint loop
static

Referenced by draw_gl(), and main().

◆ spin

GLfloat spin
static

Referenced by draw_gl().

◆ star

stars star[NUM_STARS]
static

Referenced by draw_gl(), and main().

◆ texture

GLuint texture[1]
static

Referenced by draw_gl(), and main().

◆ tilt

GLfloat tilt = 90.0f
static

Referenced by draw_gl(), and main().

◆ twinkle

GLboolean twinkle
static

Referenced by draw_gl(), and main().

◆ zoom

GLfloat zoom = -15.0f
static

Referenced by draw_gl(), and main().