mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 15:30:00 +01:00
36 lines
559 B
C++
36 lines
559 B
C++
#ifndef IMAGESHADER_H
|
|
#define IMAGESHADER_H
|
|
|
|
#include <string>
|
|
#include <map>
|
|
|
|
#ifdef __APPLE__
|
|
#include <sys/types.h>
|
|
#endif
|
|
|
|
#include "Shader.h"
|
|
|
|
class ImageShader : public Shader
|
|
{
|
|
|
|
public:
|
|
|
|
ImageShader();
|
|
// virtual ~ImageShader() {}
|
|
|
|
void use() override;
|
|
void reset() override;
|
|
void accept(Visitor& v) override;
|
|
|
|
void operator = (const ImageShader &S);
|
|
|
|
uint mask;
|
|
uint custom_textureindex;
|
|
float stipple;
|
|
|
|
static const char* mask_names[11];
|
|
static std::vector< uint > mask_presets;
|
|
};
|
|
|
|
#endif // IMAGESHADER_H
|