-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtexture.h
executable file
·41 lines (33 loc) · 1 KB
/
texture.h
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
32
33
34
35
36
37
38
39
/*
* Hostile Takeover:
* CS248 Final Project, Fall 2004
*
* Written by Jonathan Reeves
* jrreeves@stanford.edu
*
* A simple 3D video game demonstrating the use of OpenGL for graphics
* rendering with a number of advanced techniques and optimizations to make
* it interesting. See the README file which came with this package for more
* details. It also includes a list of sources which were consulted while
* building this software package.
*
*/
#ifndef __TEXTURE_H__
#define __TEXTURE_H__
#define TEXMAX 10;
/* texture coordinate -- used in many octree generation as well */
typedef struct {
float s;
float t;
} texCoord_t;
typedef struct {
int texID;
int sizeX;
int sizeY;
} texture_t;
int TextureLoadGround(texture_t *tex, const char *filename);
int TextureLoadWater(texture_t *tex, const char *filename);
int TextureLoadSkin(texture_t *tex, const char *filename);
int TextureLoadSky(texture_t *tex, const char *filename);
int TextureLoadTree(texture_t *tex, const char *filename);
#endif