Former-commit-id: 48dac6b378c45130c43f5b8214a7b13a35cf06d1 [formerly c874b77869e750df33a1e77fdb40747b543b2efa] Former-commit-id: a2c06e5f2b0fe3dd1c74ce2835436a7219260bf8
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
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_SERVER
|
|
#ifndef NDK_COMPONENTS_PARTICLEGROUPCOMPONENT_HPP
|
|
#define NDK_COMPONENTS_PARTICLEGROUPCOMPONENT_HPP
|
|
|
|
#include <Nazara/Graphics/ParticleGroup.hpp>
|
|
#include <NDK/Component.hpp>
|
|
|
|
namespace Ndk
|
|
{
|
|
class ParticleGroupComponent;
|
|
|
|
using ParticleGroupComponentHandle = Nz::ObjectHandle<ParticleGroupComponent>;
|
|
|
|
class NDK_API ParticleGroupComponent : public Component<ParticleGroupComponent>, public Nz::ParticleGroup
|
|
{
|
|
public:
|
|
inline ParticleGroupComponent(unsigned int maxParticleCount, Nz::ParticleLayout layout);
|
|
inline ParticleGroupComponent(unsigned int maxParticleCount, Nz::ParticleDeclarationConstRef declaration);
|
|
ParticleGroupComponent(const ParticleGroupComponent&) = default;
|
|
~ParticleGroupComponent() = default;
|
|
|
|
static ComponentIndex componentIndex;
|
|
};
|
|
}
|
|
|
|
#include <NDK/Components/ParticleGroupComponent.inl>
|
|
|
|
#endif // NDK_COMPONENTS_PARTICLEGROUPCOMPONENT_HPP
|
|
#endif // NDK_SERVER
|