Graphics: Add light type

This commit is contained in:
SirLynix
2022-05-12 23:09:40 +02:00
parent 5544d336ab
commit b6ab3ba1b3
6 changed files with 19 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ namespace Nz
class NAZARA_GRAPHICS_API Light
{
public:
inline Light();
inline Light(UInt8 lightType);
Light(const Light&) = delete;
Light(Light&&) noexcept = default;
virtual ~Light();
@@ -34,6 +34,7 @@ namespace Nz
virtual void FillLightData(void* data) const = 0;
inline const BoundingVolumef& GetBoundingVolume() const;
inline UInt8 GetLightType() const;
virtual void UpdateTransform(const Vector3f& position, const Quaternionf& rotation, const Vector3f& scale) = 0;
@@ -47,6 +48,7 @@ namespace Nz
private:
BoundingVolumef m_boundingVolume;
UInt8 m_lightType;
};
}