37 lines
736 B
C++
37 lines
736 B
C++
#ifndef SURFACEMATERIAL_H
|
|
#define SURFACEMATERIAL_H
|
|
|
|
#include "definition_global.h"
|
|
|
|
namespace paysages {
|
|
namespace definition {
|
|
|
|
class DEFINITIONSHARED_EXPORT SurfaceMaterial {
|
|
public:
|
|
SurfaceMaterial();
|
|
SurfaceMaterial(const Color &color);
|
|
SurfaceMaterial(const SurfaceMaterial &other);
|
|
~SurfaceMaterial();
|
|
|
|
static const SurfaceMaterial &getDefault();
|
|
|
|
void setColor(double r, double g, double b, double a);
|
|
|
|
void save(PackStream *stream) const;
|
|
void load(PackStream *stream);
|
|
void copy(SurfaceMaterial *destination) const;
|
|
void validate();
|
|
|
|
public:
|
|
Color *base;
|
|
|
|
double ambient;
|
|
double hardness;
|
|
double reflection;
|
|
double shininess;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif // SURFACEMATERIAL_H
|