paysages3d/src/render/software/VegetationRenderer.h

38 lines
852 B
C
Raw Normal View History

2015-10-18 15:26:19 +00:00
#ifndef VEGETATIONRENDERER_H
#define VEGETATIONRENDERER_H
#include "software_global.h"
#include "LightFilter.h"
namespace paysages {
namespace software {
class SOFTWARESHARED_EXPORT VegetationRenderer: public LightFilter
{
public:
VegetationRenderer(SoftwareRenderer *parent);
inline SoftwareRenderer *getParent() const {return parent;}
/**
* Perform ray casting on a single instance.
*/
RayCastingResult renderInstance(const SpaceSegment &segment, const VegetationInstance &instance, bool only_hit=false);
/**
* Perform ray casting on a given segment.
*/
RayCastingResult getResult(const SpaceSegment &segment, bool only_hit=false);
virtual bool applyLightFilter(LightComponent &light, const Vector3 &at) override;
private:
SoftwareRenderer *parent;
};
}
}
#endif // VEGETATIONRENDERER_H