/************************************************************************* Create a new Texture object and load a file into it. *************************************************************************/ Texture* DirectX9Renderer::createTexture(const String& filename, const String& resourceGroup) { DirectX9Texture* tex = (DirectX9Texture*)createTexture(); tex->loadFromFile(filename, resourceGroup); return tex; }
/************************************************************************* Create a new Texture object and load a file into it. *************************************************************************/ Texture* DirectX9Renderer::createTexture(const String& filename, const String& resourceGroup) { DirectX9Texture* tex = new DirectX9Texture(this); try { tex->loadFromFile(filename, resourceGroup); } catch (RendererException&) { delete tex; throw; } d_texturelist.push_back(tex); return tex; }