Пример #1
0
/*************************************************************************
	Create a new texture with the given dimensions
*************************************************************************/
Texture* DirectX9Renderer::createTexture(float size)
{
	DirectX9Texture* tex = (DirectX9Texture*)createTexture();
	tex->setD3DTextureSize((uint)size);

	return tex;
}
Пример #2
0
/*************************************************************************
	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;
}
Пример #3
0
/*************************************************************************
	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;
}
Пример #4
0
/*************************************************************************
	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;
}