paint: cleanup

This commit is contained in:
luboslenco
2026-04-04 21:38:20 +02:00
parent 38f3177cd9
commit e0dac9beb9
137 changed files with 7357 additions and 7941 deletions
+8 -8
View File
@@ -1,14 +1,6 @@
#include "../global.h"
vector_math_node_t *vector_math_node_create(ui_node_t *raw, f32_array_t *args) {
vector_math_node_t *n = GC_ALLOC_INIT(vector_math_node_t, {0});
n->base = logic_node_create(n);
n->base->get = vector_math_node_get;
n->v = vec4_create(0.0, 0.0, 0.0, 1.0);
return n;
}
logic_node_value_t *vector_math_node_get(vector_math_node_t *self, i32 from) {
vec4_t v1 = logic_node_input_get(self->base->inputs->buffer[0])->_vec4;
vec4_t v2 = logic_node_input_get(self->base->inputs->buffer[1])->_vec4;
@@ -135,3 +127,11 @@ logic_node_value_t *vector_math_node_get(vector_math_node_t *self, i32 from) {
return v;
}
}
vector_math_node_t *vector_math_node_create(ui_node_t *raw, f32_array_t *args) {
vector_math_node_t *n = GC_ALLOC_INIT(vector_math_node_t, {0});
n->base = logic_node_create(n);
n->base->get = vector_math_node_get;
n->v = vec4_create(0.0, 0.0, 0.0, 1.0);
return n;
}