aboutsummaryrefslogtreecommitdiff
path: root/modules/gdnative/godot/godot_color.h
diff options
context:
space:
mode:
authorThomas Herzog2017-05-19 22:12:14 +0000
committerGitHub2017-05-19 22:12:14 +0000
commit6fd217d7c3afb1f7e4c68f9ab40883593f617a7e (patch)
treee1c16a806b9b5ec71730a5b09c2ff6a4b17bc93c /modules/gdnative/godot/godot_color.h
parenta75623f436c215e107ede321afa08a1897552deb (diff)
parentabcb044bf3f197ef68715f89abec77102bbe58ec (diff)
downloadgodot-6fd217d.tar.gz
godot-6fd217d.tar.zst
godot-6fd217d.zip
Merge pull request #8821 from touilleMan/gdnative_missing_functions
Finish implementing GDnative builtins bindings
Diffstat (limited to 'modules/gdnative/godot/godot_color.h')
-rw-r--r--modules/gdnative/godot/godot_color.h28
1 files changed, 24 insertions, 4 deletions
diff --git a/modules/gdnative/godot/godot_color.h b/modules/gdnative/godot/godot_color.h
index b99a062a6..8588c997e 100644
--- a/modules/gdnative/godot/godot_color.h
+++ b/modules/gdnative/godot/godot_color.h
@@ -37,19 +37,39 @@ extern "C" {
#include <stdint.h>
#ifndef GODOT_CORE_API_GODOT_COLOR_TYPE_DEFINED
+#define GODOT_CORE_API_GODOT_COLOR_TYPE_DEFINED
typedef struct godot_color {
uint8_t _dont_touch_that[16];
} godot_color;
#endif
#include "../godot.h"
+#include "godot_string.h"
-void GDAPI godot_color_new(godot_color *p_color);
-void GDAPI godot_color_new_rgba(godot_color *p_color, const godot_real r, const godot_real g, const godot_real b, const godot_real a);
+void GDAPI godot_color_new_rgba(godot_color *r_dest, const godot_real p_r, const godot_real p_g, const godot_real p_b, const godot_real p_a);
+void GDAPI godot_color_new_rgb(godot_color *r_dest, const godot_real p_r, const godot_real p_g, const godot_real p_b);
-uint32_t GDAPI godot_color_get_32(const godot_color *p_color);
+godot_string GDAPI godot_color_as_string(const godot_color *p_self);
-float GDAPI *godot_color_index(godot_color *p_color, const godot_int idx);
+godot_int GDAPI godot_color_to_32(const godot_color *p_self);
+
+godot_int GDAPI godot_color_to_ARGB32(const godot_color *p_self);
+
+godot_real GDAPI godot_color_gray(const godot_color *p_self);
+
+godot_color GDAPI godot_color_inverted(const godot_color *p_self);
+
+godot_color GDAPI godot_color_contrasted(const godot_color *p_self);
+
+godot_color GDAPI godot_color_linear_interpolate(const godot_color *p_self, const godot_color *p_b, const godot_real p_t);
+
+godot_color GDAPI godot_color_blend(const godot_color *p_self, const godot_color *p_over);
+
+godot_string GDAPI godot_color_to_html(const godot_color *p_self, const godot_bool p_with_alpha);
+
+godot_bool GDAPI godot_color_operator_equal(const godot_color *p_self, const godot_color *p_b);
+
+godot_bool GDAPI godot_color_operator_less(const godot_color *p_self, const godot_color *p_b);
#ifdef __cplusplus
}