fork download
  1. enum class TexID
  2. {
  3. MOUSE_CURSOR = 0,
  4. BTN_GENERIC,
  5. BTN_TITLE_CONTINUE,
  6. BTN_TITLE_NEWGAME,
  7. BTN_TITLE_LOADGAME,
  8. BTN_TITLE_SETTINGS,
  9. BTN_TITLE_CREDITS,
  10. BTN_TITLE_QUIT
  11. };
  12.  
  13. class cResourceManager
  14. {
  15. private:
  16. std::map<TexID, GLuint> textureCache;
  17. std::map<TexID, std::string> texturePaths;
  18. std::map<TexID, int> textureCount;
  19.  
  20. GLuint sdlSurf2OpenGLtex(const std::unique_ptr<SDL_Surface, void(*)(SDL_Surface *)>& surf) const;
  21. public:
  22. cResourceManager(char *_argv);
  23. ~cResourceManager();
  24.  
  25. GLuint requestTexture(TexID id);
  26. void releaseTexture(TexID id);
  27. };
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:16:3: error: ‘map’ in namespace ‘std’ does not name a type
   std::map<TexID, GLuint> textureCache;
   ^
prog.cpp:17:3: error: ‘map’ in namespace ‘std’ does not name a type
   std::map<TexID, std::string> texturePaths;
   ^
prog.cpp:18:3: error: ‘map’ in namespace ‘std’ does not name a type
   std::map<TexID, int> textureCount;
   ^
prog.cpp:20:3: error: ‘GLuint’ does not name a type
   GLuint sdlSurf2OpenGLtex(const std::unique_ptr<SDL_Surface, void(*)(SDL_Surface *)>& surf) const;
   ^
prog.cpp:25:3: error: ‘GLuint’ does not name a type
   GLuint requestTexture(TexID id);
   ^
stdout
Standard output is empty