37 lines
970 B
C++
37 lines
970 B
C++
// Copyright (C) 2017 Jérôme Leclercq
|
|
// This file is part of the "Nazara Development Kit"
|
|
// For conditions of distribution and use, see copyright notice in Prerequisites.hpp
|
|
|
|
#pragma once
|
|
|
|
#ifndef NDK_SERVER
|
|
#ifndef NDK_COMPONENTS_LIGHTCOMPONENT_HPP
|
|
#define NDK_COMPONENTS_LIGHTCOMPONENT_HPP
|
|
|
|
#include <Nazara/Graphics/Light.hpp>
|
|
#include <NazaraSDK/Component.hpp>
|
|
|
|
namespace Ndk
|
|
{
|
|
class LightComponent;
|
|
|
|
using LightComponentHandle = Nz::ObjectHandle<LightComponent>;
|
|
|
|
class NDK_API LightComponent : public Component<LightComponent>, public Nz::Light
|
|
{
|
|
public:
|
|
inline LightComponent(Nz::LightType lightType = Nz::LightType_Point);
|
|
LightComponent(const LightComponent& light) = default;
|
|
~LightComponent() = default;
|
|
|
|
LightComponent& operator=(const LightComponent& light) = default;
|
|
|
|
static ComponentIndex componentIndex;
|
|
};
|
|
}
|
|
|
|
#include <NazaraSDK/Components/LightComponent.inl>
|
|
|
|
#endif // NDK_COMPONENTS_LIGHTCOMPONENT_HPP
|
|
#endif // NDK_SERVER
|