KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
nehe16.c File Reference
#include <kos.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glkos.h>

Functions

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

Variables

static GLfloat xrot
 
static GLfloat yrot
 
static GLfloat xspeed
 
static GLfloat yspeed
 
static GLfloat z = -5.0f
 
static GLuint texture
 
GLuint fogType = 0
 
GLuint fogMode [] = { GL_EXP, GL_EXP2, GL_LINEAR }
 
char cfogMode [3][10] = {"GL_EXP ", "GL_EXP2 ", "GL_LINEAR" }
 
GLfloat fogColor [4] = { 0.5f, 0.5f, 0.5f, 1.0f }
 
int fog = GL_TRUE
 

Function Documentation

◆ draw_gl()

void draw_gl ( void )

References texture, xrot, xspeed, yrot, yspeed, and z.

Referenced by main().

◆ glTextureLoadPVR()

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

Referenced by main().

◆ main()

Variable Documentation

◆ cfogMode

char cfogMode[3][10] = {"GL_EXP ", "GL_EXP2 ", "GL_LINEAR" }

Referenced by main().

◆ fog

int fog = GL_TRUE

Referenced by main().

◆ fogColor

GLfloat fogColor[4] = { 0.5f, 0.5f, 0.5f, 1.0f }

Referenced by main().

◆ fogMode

GLuint fogMode[] = { GL_EXP, GL_EXP2, GL_LINEAR }

Referenced by main().

◆ fogType

GLuint fogType = 0

Referenced by main().

◆ texture

GLuint texture
static

Referenced by draw_gl(), and main().

◆ xrot

GLfloat xrot
static

Referenced by draw_gl().

◆ xspeed

GLfloat xspeed
static

Referenced by draw_gl(), and main().

◆ yrot

GLfloat yrot
static

Referenced by draw_gl().

◆ yspeed

GLfloat yspeed
static

Referenced by draw_gl(), and main().

◆ z

GLfloat z = -5.0f
static

Referenced by draw_gl(), and main().