// Get the texture's name in the shaders assigned to the texture unit const char* TextureCtrlr::GetTextureName(GLuint textureUnit) { TextureObject* theTexture = this->FindTextureByUnit(textureUnit); if(theTexture == NULL) { std::cout << "Warning: TextureCtrlr::GetTextureName(): Texture not found!" << std::endl; return NULL; } return theTexture->GetTextureName(); }