Added text overlay to the example base (by default off)

This commit is contained in:
saschawillems 2016-05-15 18:31:31 +02:00
parent 99b9ff220d
commit 5266c25c33
3 changed files with 80 additions and 14 deletions

View file

@ -39,6 +39,7 @@
#include "vulkanswapchain.hpp"
#include "vulkanTextureLoader.hpp"
#include "vulkanMeshLoader.hpp"
#include "vulkantextoverlay.hpp"
#define GAMEPAD_BUTTON_A 0x1000
#define GAMEPAD_BUTTON_B 0x1001
@ -125,6 +126,8 @@ protected:
VkSemaphore presentComplete;
// Command buffer submission and execution
VkSemaphore renderComplete;
// Text overlay submission and execution
VkSemaphore textOverlayComplete;
} semaphores;
// Simple texture loader
vkTools::VulkanTextureLoader *textureLoader = nullptr;
@ -147,6 +150,9 @@ public:
bool paused = false;
bool enableTextOverlay = false;
VulkanTextOverlay *textOverlay;
// Use to adjust mouse rotation speed
float rotationSpeed = 1.0f;
// Use to adjust mouse zoom speed
@ -332,5 +338,7 @@ public:
VkSubmitInfo prepareSubmitInfo(
std::vector<VkCommandBuffer> commandBuffers,
VkPipelineStageFlags *pipelineStages);
void updateTextOverlay();
};