Subversion Repositories gelsvn

Rev

Rev 125 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
78 jab 1
#ifndef __TEXMAP_H__
2
#define __TEXMAP_H__
3
 
4
#include <string>
132 jab 5
#include "CGLA/Vec3f.h"
6
#include "Graphics/gel_gl.h"
78 jab 7
 
79 jab 8
namespace Geometry
78 jab 9
{
10
	class Texmap 
11
	{
125 jab 12
		GLuint id;
78 jab 13
		unsigned char *image;
14
		unsigned int bpp;
15
		int size_x;
16
		int size_y;
17
		int load_size_x;
18
		int load_size_y;
19
		std::string name;
20
 
21
	public:
22
 
23
		// Constuctor/destructor
24
		Texmap();
25
		~Texmap();
26
 
27
		const std::string& get_name() const {return name;}
28
		bool load(const std::string& _name);
29
		CGLA::Vec3f get_texel(int u, int v);
30
 
31
		void gl_init();
32
		void gl_bind();
33
	};
34
 
35
}
36
#endif
37
 
38
 
39