コード例 #1
0
    //-----------------------------------------------------------------------------
    GLTextureManager::GLTextureManager(GLSupport& support)
        : TextureManager(), mGLSupport(support), mWarningTextureID(0)
    {
        // register with group manager
        ResourceGroupManager::getSingleton()._registerResourceManager(mResourceType, this);

		createWarningTexture();
    }
コード例 #2
0
    TextureManager::TextureManager(const VFS::Manager *vfs)
        : mVFS(vfs)
        , mMinFilter(osg::Texture::LINEAR_MIPMAP_LINEAR)
        , mMagFilter(osg::Texture::LINEAR)
        , mMaxAnisotropy(1)
        , mWarningTexture(createWarningTexture())
        , mUnRefImageDataAfterApply(false)
    {

    }
コード例 #3
0
 //-----------------------------------------------------------------------------
 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);
 }