fork download
  1. #ifndef __TEXTURE_H
  2. #define __TEXTURE_H
  3. #include <iostream>
  4. #include <GL/gl.h>
  5. #include <GL/glu.h>
  6. #include <GL/glext.h>
  7.  
  8. #include <vector>
  9. #include <cstring>
  10.  
  11. #include <iostream>
  12. #include <fstream>
  13.  
  14. using namespace std;
  15.  
  16. class Texture
  17. {
  18. public:
  19. void Load(string filename,bool fixEdge=false);
  20. GLuint texID;
  21. int width,height;
  22.  
  23. void loadFile(std::vector<unsigned char>& buffer, const std::string& filename);
  24. void loadFile2(std::vector<unsigned char>& buffer, const std::string& filename);
  25. 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);
  26. private:
  27. };
  28. #endif
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:19: fatal error: GL/gl.h: No such file or directory
compilation terminated.
stdout
Standard output is empty