mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-21 03:16:54 +01:00
28 lines
550 B
C++
28 lines
550 B
C++
#ifndef MM_UNIFORM_H
|
|
#define MM_UNIFORM_H
|
|
|
|
#include "../mm_node.h"
|
|
#include "../mm_node_universal_property.h"
|
|
|
|
class MMUniform : public MMNode {
|
|
GDCLASS(MMUniform, MMNode);
|
|
|
|
public:
|
|
Ref<MMNodeUniversalProperty> get_uniform();
|
|
void set_uniform(const Ref<MMNodeUniversalProperty> &val);
|
|
|
|
void _init_properties();
|
|
void _register_methods(MMGraphNode *mm_graph_node);
|
|
Color _get_value_for(const Vector2 &uv, const int pseed);
|
|
|
|
MMUniform();
|
|
~MMUniform();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
Ref<MMNodeUniversalProperty> uniform;
|
|
};
|
|
|
|
#endif
|