mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Minimally operational Shader editor
Can edit code in GLSL, syntax highlighted, and compile shader. Compatible with ShaderToy code.
This commit is contained in:
@@ -28,6 +28,10 @@ public:
|
||||
|
||||
// get the code of the filter
|
||||
inline std::string code() const { return code_; }
|
||||
|
||||
// global
|
||||
static std::string getFilterCodeInputs();
|
||||
static std::string getFilterCodeDefault();
|
||||
};
|
||||
|
||||
|
||||
@@ -59,7 +63,7 @@ public:
|
||||
uint getOutputTexture() const;
|
||||
|
||||
// set the code of the filter
|
||||
void setFilter(const ImageFilter &f);
|
||||
void setFilter(const ImageFilter &f, std::promise<std::string> *ret = nullptr);
|
||||
|
||||
// get the code of the filter
|
||||
inline ImageFilter filter() const { return filter_; }
|
||||
|
||||
Reference in New Issue
Block a user