Added Texture::HasMipmaps()
Former-commit-id: 4d21c32579e26e95a9376a4352fd50edd4ba0ed3
This commit is contained in:
@@ -632,6 +632,19 @@ nzTextureWrap NzTexture::GetWrapMode() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool NzTexture::HasMipmaps() const
|
||||||
|
{
|
||||||
|
#if NAZARA_RENDERER_SAFE
|
||||||
|
if (!m_impl)
|
||||||
|
{
|
||||||
|
NazaraError("Texture must be valid");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return m_impl->levelCount > 1;
|
||||||
|
}
|
||||||
|
|
||||||
bool NzTexture::IsCompressed() const
|
bool NzTexture::IsCompressed() const
|
||||||
{
|
{
|
||||||
#if NAZARA_RENDERER_SAFE
|
#if NAZARA_RENDERER_SAFE
|
||||||
|
|||||||
Reference in New Issue
Block a user