Sdk/Application: Add command-line arguments handling

Former-commit-id: efe6c5a1d911bb78314f8819575699874f5101e8 [formerly a9b33eea0b4b261d3e3a63d8949512f737dbe1e1] [formerly bd00d4e8009ff0efa74e6a27d78960f6d3d72c17 [formerly 17b26899d0c158c77ea0ab4cfa243e92c2145b6b]]
Former-commit-id: 4caea7e656e3718e1d462c5ed280aa6353368166 [formerly b82d884df55141a10251e84e54e0a40f84db2a5e]
Former-commit-id: 3798d603338416b18a4d427cf8b3cb87bac12ff6
This commit is contained in:
Lynix
2016-08-28 21:47:29 +02:00
parent cba0190f03
commit d9d2347688
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");