2013-11-13 19:07:35 +00:00
|
|
|
#ifndef SURFACEMATERIAL_H
|
|
|
|
#define SURFACEMATERIAL_H
|
|
|
|
|
|
|
|
#include "definition_global.h"
|
|
|
|
|
|
|
|
namespace paysages {
|
|
|
|
namespace definition {
|
|
|
|
|
|
|
|
class DEFINITIONSHARED_EXPORT SurfaceMaterial
|
|
|
|
{
|
2013-12-25 18:45:56 +00:00
|
|
|
public:
|
|
|
|
SurfaceMaterial();
|
|
|
|
SurfaceMaterial(const Color& color);
|
2015-08-19 17:14:59 +00:00
|
|
|
~SurfaceMaterial();
|
|
|
|
|
|
|
|
void setColor(double r, double g, double b, double a);
|
2013-12-25 18:45:56 +00:00
|
|
|
|
|
|
|
void save(PackStream* stream) const;
|
|
|
|
void load(PackStream* stream);
|
|
|
|
|
|
|
|
void validate();
|
|
|
|
|
2013-11-13 19:07:35 +00:00
|
|
|
public:
|
2015-08-19 17:14:59 +00:00
|
|
|
Color *base;
|
2013-11-13 19:07:35 +00:00
|
|
|
|
|
|
|
double hardness;
|
|
|
|
double reflection;
|
|
|
|
double shininess;
|
|
|
|
|
|
|
|
double receive_shadows;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SURFACEMATERIAL_H
|