KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
gl-elements.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)
 
void RenderCallback (GLuint texID)
 
static int check_start (void)
 
int main (int argc, char **argv)
 

Variables

GLfloat VERTEX_ARRAY [4 *3 *1]
 
GLfloat TEXCOORD_ARRAY [4 *2 *1]
 
GLfloat NORMAL_ARRAY [4 *3 *1]
 
GLubyte INDEX_ARRAY [4 *1] = { 0, 1, 2, 3 }
 
static float rx = 1.0f
 

Function Documentation

◆ 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)

Variable Documentation

◆ INDEX_ARRAY

GLubyte INDEX_ARRAY[4 *1] = { 0, 1, 2, 3 }

Referenced by RenderCallback().

◆ NORMAL_ARRAY

GLfloat NORMAL_ARRAY[4 *3 *1]
Initial value:
= { 0, -1, 0,
0, 1, 0,
0, 1, 0,
0, 1, 0
}

Referenced by RenderCallback().

◆ rx

float rx = 1.0f
static

Referenced by convert(), objload(), and RenderCallback().

◆ TEXCOORD_ARRAY

GLfloat TEXCOORD_ARRAY[4 *2 *1]
Initial value:
= { 0, 0,
1, 0,
1, 1,
0, 1
}

Referenced by RenderCallback().

◆ VERTEX_ARRAY

GLfloat VERTEX_ARRAY[4 *3 *1]
Initial value:
= { -100.0f, -10.0f, 100.0f,
100.0f, -10.0f, 100.0f,
100.0f, -10.0f, -100.0f,
-100.0f, -10.0f, -100.0f
}

Referenced by RenderCallback().