Files
NazaraEngine/src/Nazara/Graphics/AbstractRenderQueue.cpp
Lynix 367ec18217 Graphics/Light: Change the way lights are queued
Former-commit-id: 18cf919c3b221425624a4db15c59699abfba6fc7
2015-05-27 00:15:12 +02:00

31 lines
775 B
C++

// Copyright (C) 2015 Jérôme Leclercq
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Graphics/AbstractRenderQueue.hpp>
#include <Nazara/Graphics/Debug.hpp>
NzAbstractRenderQueue::~NzAbstractRenderQueue() = default;
void NzAbstractRenderQueue::AddDirectionalLight(const DirectionalLight& light)
{
directionalLights.push_back(light);
}
void NzAbstractRenderQueue::AddPointLight(const PointLight& light)
{
pointLights.push_back(light);
}
void NzAbstractRenderQueue::AddSpotLight(const SpotLight& light)
{
spotLights.push_back(light);
}
void NzAbstractRenderQueue::Clear(bool fully)
{
directionalLights.clear();
pointLights.clear();
spotLights.clear();
}