mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(component): add TextureCacheHasMips
This commit is contained in:
parent
32e8b11233
commit
36ce090013
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user