Scale text overlay based on Android display DPI

This commit is contained in:
saschawillems 2017-03-10 17:52:53 +01:00
parent 82521aaafb
commit 8b6cdf4e95
3 changed files with 33 additions and 0 deletions

View file

@ -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();
}
}