paysages3d/src/definition/SurfaceMaterial.h

37 lines
592 B
C
Raw Normal View History

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
{
public:
SurfaceMaterial();
SurfaceMaterial(const Color& color);
~SurfaceMaterial();
void setColor(double r, double g, double b, double a);
void save(PackStream* stream) const;
void load(PackStream* stream);
void validate();
2013-11-13 19:07:35 +00:00
public:
Color *base;
2013-11-13 19:07:35 +00:00
double hardness;
double reflection;
double shininess;
double receive_shadows;
};
}
}
#endif // SURFACEMATERIAL_H