2014-01-02 14:19:20 +00:00
|
|
|
#ifndef TEXTURESMIXPREVIEWRENDERER_H
|
|
|
|
#define TEXTURESMIXPREVIEWRENDERER_H
|
2013-08-23 22:51:27 +00:00
|
|
|
|
2014-01-02 14:19:20 +00:00
|
|
|
#include "preview_global.h"
|
2013-11-12 22:15:35 +00:00
|
|
|
|
|
|
|
#include "Base2dPreviewRenderer.h"
|
2013-08-23 22:51:27 +00:00
|
|
|
|
2014-01-02 14:19:20 +00:00
|
|
|
namespace paysages {
|
|
|
|
namespace preview {
|
|
|
|
|
|
|
|
class PREVIEWSHARED_EXPORT TexturesMixPreviewRenderer:public Base2dPreviewRenderer
|
2013-08-23 22:51:27 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-01-02 14:19:20 +00:00
|
|
|
TexturesMixPreviewRenderer();
|
2013-10-03 21:28:09 +00:00
|
|
|
|
2013-08-23 22:51:27 +00:00
|
|
|
void setTextures(TexturesDefinition* textures);
|
2014-01-02 14:19:20 +00:00
|
|
|
void setTerrain(TerrainDefinition* terrain);
|
2013-08-23 22:51:27 +00:00
|
|
|
void setLayer(int layer);
|
|
|
|
|
|
|
|
protected:
|
2014-01-02 16:36:19 +00:00
|
|
|
virtual void bindEvent(BasePreview* preview) override;
|
|
|
|
virtual void updateEvent() override;
|
|
|
|
virtual Color getColor2D(double x, double y, double scaling) override;
|
2013-08-23 22:51:27 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
int layer;
|
2014-01-02 14:19:20 +00:00
|
|
|
TexturesDefinition* textures;
|
2013-08-23 22:51:27 +00:00
|
|
|
};
|
|
|
|
|
2014-01-02 14:19:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // TEXTURESMIXPREVIEWRENDERER_H
|