KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
pvr-texture.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glkos.h>
#include <GL/glext.h>

Macros

#define PVR_HDR_SIZE   0x20
 
#define MAX(x, y)
 

Functions

static GLuint PVR_TextureHeight (unsigned char *HDR)
 
static GLuint PVR_TextureWidth (unsigned char *HDR)
 
static GLuint PVR_TextureFormat (unsigned char *HDR)
 
static GLuint _glGetMipmapLevelCount (GLuint width, GLuint height)
 
static GLuint _glGetMipmapDataSize (GLuint width, GLuint height)
 
GLuint glTextureLoadPVR (char *fname, unsigned char isMipMapped, unsigned char glMipMap)
 

Macro Definition Documentation

◆ MAX

#define MAX ( x,
y )
Value:
((x) > (y) ? (x) : (y))
static GLint y
Definition scissor.c:38
static GLint x
Definition scissor.c:38

◆ PVR_HDR_SIZE

#define PVR_HDR_SIZE   0x20

Function Documentation

◆ _glGetMipmapDataSize()

static GLuint _glGetMipmapDataSize ( GLuint width,
GLuint height )
static

◆ _glGetMipmapLevelCount()

static GLuint _glGetMipmapLevelCount ( GLuint width,
GLuint height )
static

References MAX.

◆ glTextureLoadPVR()

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

◆ PVR_TextureFormat()

static GLuint PVR_TextureFormat ( unsigned char * HDR)
static

References color, fprintf, and PVR_HDR_SIZE.

◆ PVR_TextureHeight()

static GLuint PVR_TextureHeight ( unsigned char * HDR)
static

References PVR_HDR_SIZE.

◆ PVR_TextureWidth()

static GLuint PVR_TextureWidth ( unsigned char * HDR)
static

References PVR_HDR_SIZE.