-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoadTexture.h
More file actions
31 lines (27 loc) · 849 Bytes
/
LoadTexture.h
File metadata and controls
31 lines (27 loc) · 849 Bytes
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
/******************************************************************
*
* LoadTexture.h
*
* Description: Helper routine for loading texture in BMP format.
* Adapted from texture loading code of the online OpenGL Tutorial:
*
* http://www.opengl-tutorial.org/
*
* Computer Graphics Proseminar SS 2015
*
* Interactive Graphics and Simulation Group
* Institute of Computer Science
* University of Innsbruck
*
*******************************************************************/
#ifndef __LOAD_TEXTURE_H__
#define __LOAD_TEXTURE_H__
/* Structure containing texture RGB array and dimensions */
typedef struct
{
unsigned char *data;
unsigned int width, height;
} *TextureDataPtr;
/* Load BMP file specified by filename */
int LoadTexture(const char* filename, TextureDataPtr data);
#endif // __LOAD_SHADER_H__