KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
gl-arrays.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <KGL/gl.h>
#include <KGL/glu.h>
#include <KGL/glut.h>
#include <kos/init.h>
#include <dc/maple.h>
#include <dc/maple/controller.h>

Functions

GLuint glTextureLoadPVR (char *fname, unsigned char isMipMapped, unsigned char glMipMap)
 
static void SetVertex3tc (Vertex3tc *vertex, GLfloat x, GLfloat y, GLfloat z, GLfloat u, GLfloat v, GLuint color)
 
static void buildDemoArray ()
 
void RenderCallback (GLuint texID)
 
static int check_start (void)
 
int main (int argc, char **argv)
 

Variables

static Vertex3tc * vertex
 
static GLfloat rx = 1.0f
 

Function Documentation

◆ buildDemoArray()

static void buildDemoArray ( )
static

References malloc(), and SetVertex3tc().

Referenced by main().

◆ check_start()

static int check_start ( void )
static

◆ glTextureLoadPVR()

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

Referenced by main().

◆ main()

int main ( int argc,
char ** argv )

◆ RenderCallback()

void RenderCallback ( GLuint texID)

References color, and rx.

◆ SetVertex3tc()

static void SetVertex3tc ( Vertex3tc * vertex,
GLfloat x,
GLfloat y,
GLfloat z,
GLfloat u,
GLfloat v,
GLuint color )
static

References color, x, y, and z.

Referenced by buildDemoArray().

Variable Documentation

◆ rx

GLfloat rx = 1.0f
static

Referenced by RenderCallback().

◆ vertex

Vertex3tc* vertex
static