// Sets up the texture unit's wrapping and min/mag filters void TextureCtrlr::SetupTextureProperties(GLuint textureUnit, GLenum wrapping, GLenum filtering) { // Find the texture by given unit TextureObject* identfiedTexture = this->FindTextureByUnit(textureUnit); // Complain if texture not found if(identfiedTexture == NULL) { std::cout << "Warning: TextureCtrlr::SetupTextureProperties(): Texture unit not found!" << std::endl; return; } // Set up properties identfiedTexture->SetupProperties(wrapping, filtering); }