summaryrefslogtreecommitdiff
path: root/include/dds.h
blob: 8339cb05d9043d010b21f9d13da156aac6cd6a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __DDS_H__
#define __DDS_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <GL/gl.h>

typedef struct
{
    GLsizei  width;
    GLsizei  height;
    GLint    components;
    GLenum   format;
    int      numMipMaps;
    GLubyte *pixels;
} DDS_IMAGE_DATA;

int ddsInit();

DDS_IMAGE_DATA* loadDDSTextureFile( const char *filename );
void destroyDDS( DDS_IMAGE_DATA *pDDSImageData );
// returns the OpenGL-generated texture index.
int loadCompressedTexture( DDS_IMAGE_DATA *pDDSImageData );

#ifdef __cplusplus
}
#endif

#endif