/************************************************************************* Create a new texture with the given dimensions *************************************************************************/ Texture* DirectX9Renderer::createTexture(float size) { DirectX9Texture* tex = (DirectX9Texture*)createTexture(); tex->setD3DTextureSize((uint)size); return tex; }
/************************************************************************* 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 with the given dimensions *************************************************************************/ Texture* DirectX9Renderer::createTexture(float size) { DirectX9Texture* tex = new DirectX9Texture(this); try { tex->setD3DTextureSize((uint)size); } catch (RendererException&) { delete tex; throw; } d_texturelist.push_back(tex); 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; }