//----------------------------------------------------------------------------- GLTextureManager::GLTextureManager(GLSupport& support) : TextureManager(), mGLSupport(support), mWarningTextureID(0) { // register with group manager ResourceGroupManager::getSingleton()._registerResourceManager(mResourceType, this); createWarningTexture(); }
TextureManager::TextureManager(const VFS::Manager *vfs) : mVFS(vfs) , mMinFilter(osg::Texture::LINEAR_MIPMAP_LINEAR) , mMagFilter(osg::Texture::LINEAR) , mMaxAnisotropy(1) , mWarningTexture(createWarningTexture()) , mUnRefImageDataAfterApply(false) { }
//----------------------------------------------------------------------------- Resource* GLTextureManager::createImpl(const String& name, ResourceHandle handle, const String& group, bool isManual, ManualResourceLoader* loader, const NameValuePairList* createParams) { if (mWarningTextureID == 0) { createWarningTexture(); } return new GLTexture(this, name, handle, group, isManual, loader, mGLSupport); }