Added Texture::HasMipmaps()
Former-commit-id: 4d21c32579e26e95a9376a4352fd50edd4ba0ed3
This commit is contained in:
parent
325ac4e642
commit
0a88b6531c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue