platform agnostic argument handling
This commit is contained in:
parent
db66e81721
commit
9462a24421
2 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
#include "vulkanexamplebase.h"
|
#include "vulkanexamplebase.h"
|
||||||
|
|
||||||
std::vector<char*> VulkanExampleBase::args;
|
std::vector<const char*> VulkanExampleBase::args;
|
||||||
|
|
||||||
VkResult VulkanExampleBase::createInstance(bool enableValidation)
|
VkResult VulkanExampleBase::createInstance(bool enableValidation)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ public:
|
||||||
|
|
||||||
float zoom = 0;
|
float zoom = 0;
|
||||||
|
|
||||||
static std::vector<char*> args;
|
static std::vector<const char*> args;
|
||||||
|
|
||||||
// Defines a frame rate independent timer value clamped from -1.0...1.0
|
// Defines a frame rate independent timer value clamped from -1.0...1.0
|
||||||
// For use in animations, rotations, etc.
|
// For use in animations, rotations, etc.
|
||||||
|
|
@ -405,7 +405,7 @@ static void handleEvent() \
|
||||||
} \
|
} \
|
||||||
int main(const int argc, const char *argv[]) \
|
int main(const int argc, const char *argv[]) \
|
||||||
{ \
|
{ \
|
||||||
vulkanExample = new VulkanExample(); \
|
vulkanExample = new VulkanExample(); \
|
||||||
vulkanExample->initSwapchain(); \
|
vulkanExample->initSwapchain(); \
|
||||||
vulkanExample->prepare(); \
|
vulkanExample->prepare(); \
|
||||||
vulkanExample->renderLoop(); \
|
vulkanExample->renderLoop(); \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue