Renderer: Add mipmaps generation support
This commit is contained in:
@@ -221,6 +221,11 @@ namespace Nz
|
||||
return std::make_shared<OpenGLTexture>(*this, params);
|
||||
}
|
||||
|
||||
std::shared_ptr<Texture> OpenGLDevice::InstantiateTexture(const TextureInfo& params, const void* initialData, bool buildMipmaps, unsigned int srcWidth, unsigned int srcHeight)
|
||||
{
|
||||
return std::make_shared<OpenGLTexture>(*this, params, initialData, buildMipmaps, srcWidth, srcHeight);
|
||||
}
|
||||
|
||||
std::shared_ptr<TextureSampler> OpenGLDevice::InstantiateTextureSampler(const TextureSamplerInfo& params)
|
||||
{
|
||||
return std::make_shared<OpenGLTextureSampler>(*this, params);
|
||||
|
||||
Reference in New Issue
Block a user