paysages3d/src/render/software/SoftwareRenderer.cpp

31 lines
546 B
C++
Raw Normal View History

2013-11-09 17:46:34 +00:00
#include "SoftwareRenderer.h"
2013-11-10 16:04:38 +00:00
#include "Scenery.h"
2013-11-09 18:13:28 +00:00
#include "FluidMediumTraversal.h"
2013-11-09 17:46:34 +00:00
2013-11-10 16:04:38 +00:00
SoftwareRenderer::SoftwareRenderer(Scenery* scenery)
2013-11-09 17:46:34 +00:00
{
fluid_medium = new FluidMediumTraversal(this);
2013-11-10 16:04:38 +00:00
if (scenery)
{
this->scenery = scenery;
}
else
{
this->scenery = Scenery::getCurrent();
}
this->scenery->bindToRenderer(this);
2013-11-09 17:46:34 +00:00
}
SoftwareRenderer::~SoftwareRenderer()
{
delete fluid_medium;
}
2013-11-10 16:04:38 +00:00
Color SoftwareRenderer::applyMediumTraversal(Vector3 location, Color color)
{
// TODO
return color;
}