Components and systems just can't be initialized at startup, so we need some kind of explicit initialisation. I followed the same layout as the others modules by adding a core class (Ndk::Sdk) which will initialize components and systems, and Nazara's modules. This is starting to get serious, I like it. Former-commit-id: 263500e8d16db70ef7f92047b8a7e3235c08bcd0
32 lines
556 B
C++
32 lines
556 B
C++
// 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_SDK_HPP
|
|
#define NDK_SDK_HPP
|
|
|
|
#include <NDK/Prerequesites.hpp>
|
|
|
|
namespace Ndk
|
|
{
|
|
class NDK_API Sdk
|
|
{
|
|
public:
|
|
Sdk() = delete;
|
|
~Sdk() = delete;
|
|
|
|
static bool Initialize();
|
|
static bool IsInitialized();
|
|
static void Uninitialize();
|
|
|
|
private:
|
|
static unsigned int s_referenceCounter;
|
|
};
|
|
}
|
|
|
|
#include <NDK/Sdk.inl>
|
|
|
|
#endif // NDK_SDK_HPP
|