paysages3d/src/render/software/VegetationResult.h

37 lines
795 B
C
Raw Normal View History

2015-10-18 15:26:19 +00:00
#ifndef VEGETATIONRESULT_H
#define VEGETATIONRESULT_H
#include "software_global.h"
#include "Vector3.h"
#include "SurfaceMaterial.h"
namespace paysages {
namespace software {
/**
* Result of a vegetation lookup.
*/
class SOFTWARESHARED_EXPORT VegetationResult
{
public:
VegetationResult(bool hit=false);
VegetationResult(const Vector3 &location, const Vector3 &normal, const SurfaceMaterial &material);
inline bool isHit() const {return hit;}
inline const Vector3 &getLocation() const {return location;}
inline const Vector3 &getNormal() const {return normal;}
inline const SurfaceMaterial &getMaterial() const {return material;}
private:
bool hit;
Vector3 location;
Vector3 normal;
SurfaceMaterial material;
};
}
}
#endif // VEGETATIONRESULT_H