25 lines
528 B
C
25 lines
528 B
C
|
#ifndef EDITING_TEXTURES_PREVIEWLAYERLOOK_H
|
||
|
#define EDITING_TEXTURES_PREVIEWLAYERLOOK_H
|
||
|
|
||
|
#include "editing/common/previewrenderer.h"
|
||
|
|
||
|
class BasePreview;
|
||
|
|
||
|
class PreviewLayerLook : public PreviewRenderer
|
||
|
{
|
||
|
public:
|
||
|
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:
|
||
|
TexturesDefinition* textures = 0;
|
||
|
int layer;
|
||
|
};
|
||
|
|
||
|
#endif
|