diff --git a/SDK/include/NDK/Components/GraphicsComponent.hpp b/SDK/include/NDK/Components/GraphicsComponent.hpp new file mode 100644 index 000000000..d6f565960 --- /dev/null +++ b/SDK/include/NDK/Components/GraphicsComponent.hpp @@ -0,0 +1,26 @@ +// 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_COMPONENTS_GRAPHICSCOMPONENT_HPP +#define NDK_COMPONENTS_GRAPHICSCOMPONENT_HPP + +#include + +namespace Ndk +{ + class NDK_API GraphicsComponent : public Component + { + public: + GraphicsComponent(); + ~GraphicsComponent() = default; + + static ComponentIndex componentIndex; + }; +} + +#include + +#endif // NDK_COMPONENTS_GRAPHICSCOMPONENT_HPP diff --git a/SDK/include/NDK/Components/GraphicsComponent.inl b/SDK/include/NDK/Components/GraphicsComponent.inl new file mode 100644 index 000000000..e5f296d27 --- /dev/null +++ b/SDK/include/NDK/Components/GraphicsComponent.inl @@ -0,0 +1,3 @@ +// 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 diff --git a/SDK/src/NDK/Components/GraphicsComponent.cpp b/SDK/src/NDK/Components/GraphicsComponent.cpp new file mode 100644 index 000000000..7f6873d95 --- /dev/null +++ b/SDK/src/NDK/Components/GraphicsComponent.cpp @@ -0,0 +1,10 @@ +// 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 + +namespace Ndk +{ + ComponentIndex GraphicsComponent::componentIndex; +} diff --git a/SDK/src/NDK/Sdk.cpp b/SDK/src/NDK/Sdk.cpp index 407a88d38..f24b3466b 100644 --- a/SDK/src/NDK/Sdk.cpp +++ b/SDK/src/NDK/Sdk.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -56,6 +57,7 @@ namespace Ndk InitializeComponent("NdkCam"); InitializeComponent("NdkColli"); InitializeComponent("NdkList"); + InitializeComponent("NdkGfx"); InitializeComponent("NdkNode"); InitializeComponent("NdkPhys"); InitializeComponent("NdkVeloc");