Subversion Repositories gelsvn

Rev

Rev 79 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 79 Rev 125
Line 1... Line 1...
1
#ifndef __TEXMAP_H__
1
#ifndef __TEXMAP_H__
2
#define __TEXMAP_H__
2
#define __TEXMAP_H__
3
 
3
 
4
#include <string>
4
#include <string>
5
#include <CGLA/Vec3f.h>
5
#include <CGLA/Vec3f.h>
-
 
6
#if defined(__APPLE__) && defined(__MACH__)
-
 
7
#include <OpenGL/gl.h>
6
 
8
#else
-
 
9
#include <GL/gl.h>
-
 
10
#endif
7
 
11
 
8
namespace Geometry
12
namespace Geometry
9
{
13
{
10
	class Texmap 
14
	class Texmap 
11
	{
15
	{
12
		unsigned int id;
16
		GLuint id;
13
		unsigned char *image;
17
		unsigned char *image;
14
		unsigned int bpp;
18
		unsigned int bpp;
15
		int size_x;
19
		int size_x;
16
		int size_y;
20
		int size_y;
17
		int load_size_x;
21
		int load_size_x;