diff --git a/SDK/include/NDK/Application.hpp b/SDK/include/NDK/Application.hpp new file mode 100644 index 000000000..b35c6c7f7 --- /dev/null +++ b/SDK/include/NDK/Application.hpp @@ -0,0 +1,24 @@ +// Copyright (C) 2015 Jérôme Leclercq +// This file is part of the "Nazara Development Kit" +// For conditions of distribution and use, see copyright notice in Prerequesites.hpp + +#pragma once + +#ifndef NDK_APPLICATION_HPP +#define NDK_APPLICATION_HPP + +#include + +namespace Ndk +{ + class NDK_API Application + { + public: + Application(); + ~Application(); + }; +} + +#include + +#endif // NDK_APPLICATION_HPP diff --git a/SDK/include/NDK/Application.inl b/SDK/include/NDK/Application.inl new file mode 100644 index 000000000..a09d1d610 --- /dev/null +++ b/SDK/include/NDK/Application.inl @@ -0,0 +1,25 @@ +// Copyright (C) 2015 Jérôme Leclercq +// This file is part of the "Nazara Development Kit" +// For conditions of distribution and use, see copyright notice in Prerequesites.hpp + +#include +#include + +namespace Ndk +{ + inline Application::Application() + { + NzErrorFlags errFlags(nzErrorFlag_ThrowException, true); + + // Initialisation du SDK + Sdk::Initialize(); + } + + inline Application::~Application() + { + // Libération du SDK + Sdk::Uninitialize(); + + // Libération automatique des modules + } +} diff --git a/SDK/src/NDK/Application.cpp b/SDK/src/NDK/Application.cpp new file mode 100644 index 000000000..a2141b0f8 --- /dev/null +++ b/SDK/src/NDK/Application.cpp @@ -0,0 +1,5 @@ +// Copyright (C) 2015 Jérôme Leclercq +// This file is part of the "Nazara Development Kit" +// For conditions of distribution and use, see copyright notice in Prerequesites.hpp + +#include