(NDK) Added Application class
Let's try something Former-commit-id: ebace85e2b050b1fbb994a61a644b60b85cc5a30
This commit is contained in:
24
SDK/include/NDK/Application.hpp
Normal file
24
SDK/include/NDK/Application.hpp
Normal file
@@ -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 <NDK/Prerequesites.hpp>
|
||||||
|
|
||||||
|
namespace Ndk
|
||||||
|
{
|
||||||
|
class NDK_API Application
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
Application();
|
||||||
|
~Application();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#include <NDK/Application.inl>
|
||||||
|
|
||||||
|
#endif // NDK_APPLICATION_HPP
|
||||||
25
SDK/include/NDK/Application.inl
Normal file
25
SDK/include/NDK/Application.inl
Normal file
@@ -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 <Nazara/Core/ErrorFlags.hpp>
|
||||||
|
#include <NDK/Sdk.hpp>
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
5
SDK/src/NDK/Application.cpp
Normal file
5
SDK/src/NDK/Application.cpp
Normal file
@@ -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 <NDK/Application.hpp>
|
||||||
Reference in New Issue
Block a user