fork download
  1. void cResourceManager::releaseTexture(TexID id)
  2. {
  3. textureCount.at(id)--;
  4. if (textureCount.at(id) == 0)
  5. {
  6. GL_CALL(glDeleteTextures(1, &textureCache.at(id)));
  7. textureCache.erase(id);
  8. textureCount.erase(id);
  9. }
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:6: error: ‘cResourceManager’ has not been declared
 void cResourceManager::releaseTexture(TexID id)
      ^
prog.cpp:1:39: error: variable or field ‘releaseTexture’ declared void
 void cResourceManager::releaseTexture(TexID id)
                                       ^
prog.cpp:1:39: error: ‘TexID’ was not declared in this scope
stdout
Standard output is empty