#ifndef __TEXTURE_H
#define __TEXTURE_H
#include <iostream>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glext.h>

#include <vector>
#include <cstring>

#include <iostream>
#include <fstream>

using namespace std;

class Texture
{
	public:
		void Load(string filename,bool fixEdge=false);
		GLuint texID;
		int width,height;

		void loadFile(std::vector<unsigned char>& buffer, const std::string& filename);
		void loadFile2(std::vector<unsigned char>& buffer, const std::string& filename);
		int decodePNG(std::vector<unsigned char>& out_image, unsigned long& image_width, unsigned long& image_height, const unsigned char* in_png, size_t in_size, bool convert_to_rgba32 = true);
	private:
};
#endif