KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
specular.c File Reference
#include <kos.h>
#include <KGL/gl.h>
#include <KGL/glu.h>
#include <KGL/glut.h>
#include "vector.h"
#include "input.h"
#include "texture.h"
#include "timer.h"
#include "font.h"

Macros

#define LGAP   13
 

Functions

void glSetCameraPosition (vector3f campos, vector3f camdst)
 
void draw_gl_cube (float x, float y, float z, uint32_t color)
 
void draw_gl (void)
 
void draw_gl2 (void)
 
void draw_gl3 (void)
 
void draw_gl4 (void)
 
void draw_gl5 (void)
 
void draw_gl6 (void)
 
void draw_gl7 (void)
 
void draw_gl8 (void)
 
void draw_gl9 (void)
 
void draw_gl10 (void)
 
void GPU_Stats (void)
 
int InputCb (void)
 
int main (int argc, const char *argv[])
 

Variables

static GLfloat z = -5.0f
 
static GLuint texture [2]
 
static vector3f up = { 0.0f, 1.0f, 0.0f }
 
static vector3f camFrom = { -74.0f, 10.0f, 0.0f }
 
static vector3f camTo = { -74.0f, 10.0f, 10.0f }
 
static Fps fps = {45, 0, 0, 0, 0}
 
static Fontfont
 
static unsigned char LE [8] = {0, 1, 0, 0, 0, 0, 0, 0}
 

Macro Definition Documentation

◆ LGAP

Function Documentation

◆ draw_gl()

void draw_gl ( void )

References l, LGAP, texture, and z.

Referenced by main().

◆ draw_gl10()

void draw_gl10 ( void )

References l, LGAP, texture, and z.

Referenced by main().

◆ draw_gl2()

void draw_gl2 ( void )

References l, LGAP, texture, and z.

Referenced by main().

◆ draw_gl3()

void draw_gl3 ( void )

References l, LGAP, texture, and z.

Referenced by main().

◆ draw_gl4()

void draw_gl4 ( void )

References l, LGAP, texture, and z.

Referenced by main().

◆ draw_gl5()

void draw_gl5 ( void )

References l, LGAP, texture, and z.

Referenced by main().

◆ draw_gl6()

void draw_gl6 ( void )

References l, LGAP, texture, and z.

Referenced by main().

◆ draw_gl7()

void draw_gl7 ( void )

References l, LGAP, texture, and z.

Referenced by main().

◆ draw_gl8()

void draw_gl8 ( void )

References l, LGAP, texture, and z.

Referenced by main().

◆ draw_gl9()

void draw_gl9 ( void )

References l, LGAP, texture, and z.

Referenced by main().

◆ draw_gl_cube()

void draw_gl_cube ( float x,
float y,
float z,
uint32_t color )

References color, texture, x, y, and z.

Referenced by main().

◆ glSetCameraPosition()

void glSetCameraPosition ( vector3f campos,
vector3f camdst )

References up.

Referenced by main().

◆ GPU_Stats()

void GPU_Stats ( void )

References fps, printf, pvr_get_stats(), and stats().

Referenced by main().

◆ InputCb()

◆ main()

Variable Documentation

◆ camFrom

vector3f camFrom = { -74.0f, 10.0f, 0.0f }
static

Referenced by main().

◆ camTo

vector3f camTo = { -74.0f, 10.0f, 10.0f }
static

Referenced by main().

◆ font

Font* font
static

Referenced by main().

◆ fps

Fps fps = {45, 0, 0, 0, 0}
static

Referenced by GPU_Stats(), and main().

◆ LE

unsigned char LE[8] = {0, 1, 0, 0, 0, 0, 0, 0}
static

Referenced by InputCb(), and main().

◆ texture

◆ up

vector3f up = { 0.0f, 1.0f, 0.0f }
static

Referenced by glSetCameraPosition().

◆ z