Sdk/Application: Add command-line arguments handling

Former-commit-id: 40feef03dfa4e0537490689cc1af8f68131007c7 [formerly ea93fa9625bce277d27cb1747ee34ee884fdfc28] [formerly 721b1b3400e2e6aed984b37f61cd54986e5c0e2e [formerly 50614ac42a3d1a2564e4c38d9c7c0675e44b2fb8]]
Former-commit-id: d64cc60dbd82cffc23e081f270d0e173b9e2a6a5 [formerly a9ff7af1ab1ebbd1687d120a8e8e036e6c6926b5]
Former-commit-id: 45f34e16b8d6a91d407df30c36e598ff3270e50f
This commit is contained in:
Lynix
2016-08-28 21:47:29 +02:00
parent ab69578e72
commit 517b2bbaaf
5 changed files with 132 additions and 28 deletions

View File

@@ -9,16 +9,14 @@
#include <Nazara/Utility.hpp>
#include <NDK/Application.hpp>
#include <iostream>
#include <vector>
#include <unordered_map>
int main()
int main(int argc, char* argv[])
{
// This "example" has only one purpose: Giving an empty project for you to test whatever you want
// If you wish to have multiple test projects, you only have to copy/paste this directory and change the name in the build.lua
Ndk::Application app;
// This "example" has only one purpose: Giving an empty project for you to test whatever you want
// If you wish to have multiple test projects, you only have to copy/paste this directory and change the name in the build.lua
Ndk::Application application(argc, argv);
// Do what you want here
return EXIT_SUCCESS;
// Do what you want here
return EXIT_SUCCESS;
}

View File

@@ -9,9 +9,9 @@
#include <NDK/World.hpp>
#include <iostream>
int main()
int main(int argc, char* argv[])
{
Ndk::Application application;
Ndk::Application application(argc, argv);
Nz::RenderWindow& mainWindow = application.AddWindow<Nz::RenderWindow>();
mainWindow.Create(Nz::VideoMode(800, 600, 32), "Test");