Graphics/AbstractRenderQueue: Made members public
Former-commit-id: 61f69dda42b5d091a94d65b9f7f04ff1ce1ce59e
This commit is contained in:
parent
2bba1be938
commit
68d6f62cd4
|
|
@ -48,7 +48,6 @@ class NAZARA_API NzAbstractRenderQueue : NzNonCopyable
|
||||||
|
|
||||||
virtual void Clear(bool fully);
|
virtual void Clear(bool fully);
|
||||||
|
|
||||||
protected:
|
|
||||||
struct DirectionalLight
|
struct DirectionalLight
|
||||||
{
|
{
|
||||||
NzColor color;
|
NzColor color;
|
||||||
|
|
@ -80,9 +79,9 @@ class NAZARA_API NzAbstractRenderQueue : NzNonCopyable
|
||||||
float radius;
|
float radius;
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<DirectionalLight> m_directionalLights;
|
std::vector<DirectionalLight> directionalLights;
|
||||||
std::vector<PointLight> m_pointLights;
|
std::vector<PointLight> pointLights;
|
||||||
std::vector<SpotLight> m_spotLights;
|
std::vector<SpotLight> spotLights;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // NAZARA_ABSTRACTRENDERQUEUE_HPP
|
#endif // NAZARA_ABSTRACTRENDERQUEUE_HPP
|
||||||
|
|
|
||||||
|
|
@ -9,22 +9,22 @@ NzAbstractRenderQueue::~NzAbstractRenderQueue() = default;
|
||||||
|
|
||||||
void NzAbstractRenderQueue::AddDirectionalLight(const NzColor& color, float ambientFactor, float diffuseFactor, const NzVector3f& direction)
|
void NzAbstractRenderQueue::AddDirectionalLight(const NzColor& color, float ambientFactor, float diffuseFactor, const NzVector3f& direction)
|
||||||
{
|
{
|
||||||
m_directionalLights.push_back(DirectionalLight{color, direction, ambientFactor, diffuseFactor});
|
directionalLights.push_back(DirectionalLight{color, direction, ambientFactor, diffuseFactor});
|
||||||
}
|
}
|
||||||
|
|
||||||
void NzAbstractRenderQueue::AddPointLight(const NzColor& color, float ambientFactor, float diffuseFactor, const NzVector3f& position, float radius, float attenuation)
|
void NzAbstractRenderQueue::AddPointLight(const NzColor& color, float ambientFactor, float diffuseFactor, const NzVector3f& position, float radius, float attenuation)
|
||||||
{
|
{
|
||||||
m_pointLights.push_back(PointLight{color, position, ambientFactor, attenuation, diffuseFactor, radius});
|
pointLights.push_back(PointLight{color, position, ambientFactor, attenuation, diffuseFactor, radius});
|
||||||
}
|
}
|
||||||
|
|
||||||
void NzAbstractRenderQueue::AddSpotLight(const NzColor& color, float ambientFactor, float diffuseFactor, const NzVector3f& position, const NzVector3f& direction, float radius, float attenuation, float innerAngle, float outerAngle)
|
void NzAbstractRenderQueue::AddSpotLight(const NzColor& color, float ambientFactor, float diffuseFactor, const NzVector3f& position, const NzVector3f& direction, float radius, float attenuation, float innerAngle, float outerAngle)
|
||||||
{
|
{
|
||||||
m_spotLights.push_back(SpotLight{color, direction, position, ambientFactor, attenuation, diffuseFactor, innerAngle, outerAngle, radius});
|
spotLights.push_back(SpotLight{color, direction, position, ambientFactor, attenuation, diffuseFactor, innerAngle, outerAngle, radius});
|
||||||
}
|
}
|
||||||
|
|
||||||
void NzAbstractRenderQueue::Clear(bool fully)
|
void NzAbstractRenderQueue::Clear(bool fully)
|
||||||
{
|
{
|
||||||
m_directionalLights.clear();
|
directionalLights.clear();
|
||||||
m_pointLights.clear();
|
pointLights.clear();
|
||||||
m_spotLights.clear();
|
spotLights.clear();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue