2013-08-23 22:51:27 +00:00
|
|
|
#ifndef EDITING_TEXTURES_PREVIEWCUMUL_H
|
|
|
|
#define EDITING_TEXTURES_PREVIEWCUMUL_H
|
|
|
|
|
2013-11-14 20:46:47 +00:00
|
|
|
#include "desktop_global.h"
|
2013-11-12 22:15:35 +00:00
|
|
|
|
|
|
|
#include "Base2dPreviewRenderer.h"
|
2013-08-23 22:51:27 +00:00
|
|
|
|
2013-11-12 22:15:35 +00:00
|
|
|
class PreviewCumul : public Base2dPreviewRenderer
|
2013-08-23 22:51:27 +00:00
|
|
|
{
|
|
|
|
public:
|
2013-11-12 20:34:35 +00:00
|
|
|
explicit PreviewCumul():
|
2013-11-12 22:15:35 +00:00
|
|
|
Base2dPreviewRenderer(),textures(0){}
|
2013-10-03 21:28:09 +00:00
|
|
|
|
2013-08-23 22:51:27 +00:00
|
|
|
void setTextures(TexturesDefinition* textures);
|
|
|
|
void setLayer(int layer);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void bindEvent(BasePreview* preview);
|
|
|
|
virtual void updateEvent();
|
|
|
|
virtual Color getColor2D(double x, double y, double scaling);
|
|
|
|
|
|
|
|
private:
|
2013-10-03 21:28:09 +00:00
|
|
|
TexturesDefinition* textures;
|
2013-08-23 22:51:27 +00:00
|
|
|
int layer;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|