2013-11-13 19:07:35 +00:00
|
|
|
#ifndef SURFACEMATERIAL_H
|
|
|
|
#define SURFACEMATERIAL_H
|
|
|
|
|
|
|
|
#include "definition_global.h"
|
|
|
|
|
|
|
|
namespace paysages {
|
|
|
|
namespace definition {
|
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
class DEFINITIONSHARED_EXPORT SurfaceMaterial {
|
|
|
|
public:
|
2013-12-25 18:45:56 +00:00
|
|
|
SurfaceMaterial();
|
2015-11-09 21:30:46 +00:00
|
|
|
SurfaceMaterial(const Color &color);
|
2015-08-19 17:14:59 +00:00
|
|
|
~SurfaceMaterial();
|
|
|
|
|
2015-11-08 22:32:52 +00:00
|
|
|
static const SurfaceMaterial &getDefault();
|
|
|
|
|
2015-08-19 17:14:59 +00:00
|
|
|
void setColor(double r, double g, double b, double a);
|
2013-12-25 18:45:56 +00:00
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
void save(PackStream *stream) const;
|
|
|
|
void load(PackStream *stream);
|
2015-10-15 18:28:05 +00:00
|
|
|
void copy(SurfaceMaterial *destination) const;
|
2013-12-25 18:45:56 +00:00
|
|
|
void validate();
|
|
|
|
|
2015-11-09 21:30:46 +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
|