Added os specific example main entry point macros
This commit is contained in:
parent
0ca94918db
commit
e24a54b976
1 changed files with 1 additions and 0 deletions
|
|
@ -397,6 +397,7 @@ void android_main(android_app* state) \
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
// Linux entry point
|
// Linux entry point
|
||||||
// todo: extract command line arguments
|
// todo: extract command line arguments
|
||||||
|
#define VULKAN_EXAMPLE_MAIN(example, enabledfeatures) \
|
||||||
int main(const int argc, const char *argv[]) \
|
int main(const int argc, const char *argv[]) \
|
||||||
{ \
|
{ \
|
||||||
example = new VulkanExample(); \
|
example = new VulkanExample(); \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue