Added Texture::HasMipmaps()

Former-commit-id: 4d21c32579e26e95a9376a4352fd50edd4ba0ed3
This commit is contained in:
Lynix 2012-12-02 17:01:57 +01:00
parent 325ac4e642
commit 0a88b6531c
1 changed files with 13 additions and 0 deletions

View File

@ -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
{
#if NAZARA_RENDERER_SAFE