Scale text overlay based on Android display DPI
This commit is contained in:
parent
82521aaafb
commit
8b6cdf4e95
3 changed files with 33 additions and 0 deletions
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include <android/log.h>
|
||||
#include <android_native_app_glue.h>
|
||||
#include <android/configuration.h>
|
||||
#include <memory>
|
||||
|
||||
// Missing from the NDK
|
||||
|
|
@ -158,6 +159,8 @@ namespace vks
|
|||
bool loadVulkanLibrary();
|
||||
void loadVulkanFunctions(VkInstance instance);
|
||||
void freeVulkanLibrary();
|
||||
/** @brief Returns the density of the device screen (in DPI) */
|
||||
int32_t getScreenDensity();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue