mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-07 15:19:53 +03:00
feat(component): add TextureCacheHasMips
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -163,3 +163,8 @@ int32_t TextureCacheGetInfo(void* handle, TCTEXTUREINFO& info, int32_t force) {
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int32_t TextureCacheHasMips(void* handle) {
|
||||
auto entry = static_cast<CACHEENTRY*>(handle);
|
||||
return entry && entry->m_data && !entry->IsMissing();
|
||||
}
|
||||
@@ -44,4 +44,6 @@ void TextureCacheDestroyTexture(void* texture);
|
||||
|
||||
int32_t TextureCacheGetInfo(void* handle, TCTEXTUREINFO& info, int32_t a3);
|
||||
|
||||
int32_t TextureCacheHasMips(void* handle);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user