Documentation for module: Graphics
Former-commit-id: 1757c33318443aade1dc38e16d053240d7dc885c
This commit is contained in:
@@ -7,23 +7,55 @@
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
/*!
|
||||
* \ingroup graphics
|
||||
* \class Nz::AbstractRenderQueue
|
||||
* \brief Graphics class that represents the rendering queue for our scene
|
||||
*
|
||||
* \remark This class is abstract
|
||||
*/
|
||||
|
||||
AbstractRenderQueue::~AbstractRenderQueue() = default;
|
||||
|
||||
/*!
|
||||
* \brief Adds a directional light to the rendering queue
|
||||
*
|
||||
* \param light Directional light
|
||||
*/
|
||||
|
||||
void AbstractRenderQueue::AddDirectionalLight(const DirectionalLight& light)
|
||||
{
|
||||
directionalLights.push_back(light);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Adds a point light to the rendering queue
|
||||
*
|
||||
* \param light Point light
|
||||
*/
|
||||
|
||||
void AbstractRenderQueue::AddPointLight(const PointLight& light)
|
||||
{
|
||||
pointLights.push_back(light);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Adds a spot light to the rendering queue
|
||||
*
|
||||
* \param light Spot light
|
||||
*/
|
||||
|
||||
void AbstractRenderQueue::AddSpotLight(const SpotLight& light)
|
||||
{
|
||||
spotLights.push_back(light);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Clears the rendering queue
|
||||
*
|
||||
* \param fully Should everything be cleared ?
|
||||
*/
|
||||
|
||||
void AbstractRenderQueue::Clear(bool fully)
|
||||
{
|
||||
NazaraUnused(fully);
|
||||
|
||||
Reference in New Issue
Block a user