Skip to content

Commit d47f909

Browse files
committed
update to newest bindings
1 parent b629985 commit d47f909

File tree

7 files changed

+576
-1
lines changed

7 files changed

+576
-1
lines changed

bindings.json

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5076,6 +5076,54 @@
50765076
"description": "Get a Color from HSV values, hue [0..360], saturation/value [0..1]",
50775077
"custom": false
50785078
},
5079+
{
5080+
"name": "ColorTint",
5081+
"params": [
5082+
{
5083+
"name": "color",
5084+
"typ": "Color"
5085+
},
5086+
{
5087+
"name": "tint",
5088+
"typ": "Color"
5089+
}
5090+
],
5091+
"returnType": "Color",
5092+
"description": "Get color multiplied with another color",
5093+
"custom": false
5094+
},
5095+
{
5096+
"name": "ColorBrightness",
5097+
"params": [
5098+
{
5099+
"name": "color",
5100+
"typ": "Color"
5101+
},
5102+
{
5103+
"name": "factor",
5104+
"typ": "f32"
5105+
}
5106+
],
5107+
"returnType": "Color",
5108+
"description": "Get color with brightness correction, brightness factor goes from -1.0f to 1.0f",
5109+
"custom": false
5110+
},
5111+
{
5112+
"name": "ColorContrast",
5113+
"params": [
5114+
{
5115+
"name": "color",
5116+
"typ": "Color"
5117+
},
5118+
{
5119+
"name": "contrast",
5120+
"typ": "f32"
5121+
}
5122+
],
5123+
"returnType": "Color",
5124+
"description": "Get color with contrast correction, contrast values between -1.0f and 1.0f",
5125+
"custom": false
5126+
},
50795127
{
50805128
"name": "ColorAlpha",
50815129
"params": [
@@ -16241,6 +16289,188 @@
1624116289
"description": "GL_COMPUTE_SHADER",
1624216290
"custom": false
1624316291
},
16292+
{
16293+
"name": "RL_ZERO",
16294+
"typ": "i32",
16295+
"value": "0",
16296+
"description": "GL_ZERO",
16297+
"custom": false
16298+
},
16299+
{
16300+
"name": "RL_ONE",
16301+
"typ": "i32",
16302+
"value": "1",
16303+
"description": "GL_ONE ",
16304+
"custom": false
16305+
},
16306+
{
16307+
"name": "RL_SRC_COLOR",
16308+
"typ": "i32",
16309+
"value": "768",
16310+
"description": "GL_SRC_COLOR ",
16311+
"custom": false
16312+
},
16313+
{
16314+
"name": "RL_ONE_MINUS_SRC_COLOR",
16315+
"typ": "i32",
16316+
"value": "769",
16317+
"description": "GL_ONE_MINUS_SRC_COLOR ",
16318+
"custom": false
16319+
},
16320+
{
16321+
"name": "RL_SRC_ALPHA",
16322+
"typ": "i32",
16323+
"value": "770",
16324+
"description": "GL_SRC_ALPHA ",
16325+
"custom": false
16326+
},
16327+
{
16328+
"name": "RL_ONE_MINUS_SRC_ALPHA",
16329+
"typ": "i32",
16330+
"value": "771",
16331+
"description": "GL_ONE_MINUS_SRC_ALPHA ",
16332+
"custom": false
16333+
},
16334+
{
16335+
"name": "RL_DST_ALPHA",
16336+
"typ": "i32",
16337+
"value": "772",
16338+
"description": "GL_DST_ALPHA ",
16339+
"custom": false
16340+
},
16341+
{
16342+
"name": "RL_ONE_MINUS_DST_ALPHA",
16343+
"typ": "i32",
16344+
"value": "773",
16345+
"description": "GL_ONE_MINUS_DST_ALPHA ",
16346+
"custom": false
16347+
},
16348+
{
16349+
"name": "RL_DST_COLOR",
16350+
"typ": "i32",
16351+
"value": "774",
16352+
"description": "GL_DST_COLOR ",
16353+
"custom": false
16354+
},
16355+
{
16356+
"name": "RL_ONE_MINUS_DST_COLOR",
16357+
"typ": "i32",
16358+
"value": "775",
16359+
"description": "GL_ONE_MINUS_DST_COLOR ",
16360+
"custom": false
16361+
},
16362+
{
16363+
"name": "RL_SRC_ALPHA_SATURATE",
16364+
"typ": "i32",
16365+
"value": "776",
16366+
"description": "GL_SRC_ALPHA_SATURATE ",
16367+
"custom": false
16368+
},
16369+
{
16370+
"name": "RL_CONSTANT_COLOR",
16371+
"typ": "i32",
16372+
"value": "32769",
16373+
"description": "GL_CONSTANT_COLOR ",
16374+
"custom": false
16375+
},
16376+
{
16377+
"name": "RL_ONE_MINUS_CONSTANT_COLOR",
16378+
"typ": "i32",
16379+
"value": "32770",
16380+
"description": "GL_ONE_MINUS_CONSTANT_COLOR",
16381+
"custom": false
16382+
},
16383+
{
16384+
"name": "RL_CONSTANT_ALPHA",
16385+
"typ": "i32",
16386+
"value": "32771",
16387+
"description": "GL_CONSTANT_ALPHA ",
16388+
"custom": false
16389+
},
16390+
{
16391+
"name": "RL_ONE_MINUS_CONSTANT_ALPHA",
16392+
"typ": "i32",
16393+
"value": "32772",
16394+
"description": "GL_ONE_MINUS_CONSTANT_ALPHA",
16395+
"custom": false
16396+
},
16397+
{
16398+
"name": "RL_FUNC_ADD",
16399+
"typ": "i32",
16400+
"value": "32774",
16401+
"description": "GL_FUNC_ADD ",
16402+
"custom": false
16403+
},
16404+
{
16405+
"name": "RL_FUNC_SUBTRACT",
16406+
"typ": "i32",
16407+
"value": "32778",
16408+
"description": "GL_FUNC_SUBTRACT ",
16409+
"custom": false
16410+
},
16411+
{
16412+
"name": "RL_FUNC_REVERSE_SUBTRACT",
16413+
"typ": "i32",
16414+
"value": "32779",
16415+
"description": "GL_FUNC_REVERSE_SUBTRACT",
16416+
"custom": false
16417+
},
16418+
{
16419+
"name": "RL_BLEND_EQUATION",
16420+
"typ": "i32",
16421+
"value": "32777",
16422+
"description": "GL_BLEND_EQUATION ",
16423+
"custom": false
16424+
},
16425+
{
16426+
"name": "RL_BLEND_EQUATION_RGB",
16427+
"typ": "i32",
16428+
"value": "32777",
16429+
"description": "GL_BLEND_EQUATION_RGB // (Same as BLEND_EQUATION)",
16430+
"custom": false
16431+
},
16432+
{
16433+
"name": "RL_BLEND_EQUATION_ALPHA",
16434+
"typ": "i32",
16435+
"value": "34877",
16436+
"description": "GL_BLEND_EQUATION_ALPHA ",
16437+
"custom": false
16438+
},
16439+
{
16440+
"name": "RL_BLEND_DST_RGB",
16441+
"typ": "i32",
16442+
"value": "32968",
16443+
"description": "GL_BLEND_DST_RGB ",
16444+
"custom": false
16445+
},
16446+
{
16447+
"name": "RL_BLEND_SRC_RGB",
16448+
"typ": "i32",
16449+
"value": "32969",
16450+
"description": "GL_BLEND_SRC_RGB ",
16451+
"custom": false
16452+
},
16453+
{
16454+
"name": "RL_BLEND_DST_ALPHA",
16455+
"typ": "i32",
16456+
"value": "32970",
16457+
"description": "GL_BLEND_DST_ALPHA ",
16458+
"custom": false
16459+
},
16460+
{
16461+
"name": "RL_BLEND_SRC_ALPHA",
16462+
"typ": "i32",
16463+
"value": "32971",
16464+
"description": "GL_BLEND_SRC_ALPHA ",
16465+
"custom": false
16466+
},
16467+
{
16468+
"name": "RL_BLEND_COLOR",
16469+
"typ": "i32",
16470+
"value": "32773",
16471+
"description": "GL_BLEND_COLOR ",
16472+
"custom": false
16473+
},
1624416474
{
1624516475
"name": "GL_SHADING_LANGUAGE_VERSION",
1624616476
"typ": "i32",

marshal.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,21 @@ void mColorFromHSV(Color *out, float hue, float saturation, float value)
15881588
*out = ColorFromHSV(hue, saturation, value);
15891589
}
15901590

1591+
void mColorTint(Color *out, Color *color, Color *tint)
1592+
{
1593+
*out = ColorTint(*color, *tint);
1594+
}
1595+
1596+
void mColorBrightness(Color *out, Color *color, float factor)
1597+
{
1598+
*out = ColorBrightness(*color, factor);
1599+
}
1600+
1601+
void mColorContrast(Color *out, Color *color, float contrast)
1602+
{
1603+
*out = ColorContrast(*color, contrast);
1604+
}
1605+
15911606
void mColorAlpha(Color *out, Color *color, float alpha)
15921607
{
15931608
*out = ColorAlpha(*color, alpha);

marshal.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,15 @@ void mColorToHSV(Vector3 *out, Color *color);
960960
// Get a Color from HSV values, hue [0..360], saturation/value [0..1]
961961
void mColorFromHSV(Color *out, float hue, float saturation, float value);
962962

963+
// Get color multiplied with another color
964+
void mColorTint(Color *out, Color *color, Color *tint);
965+
966+
// Get color with brightness correction, brightness factor goes from -1.0f to 1.0f
967+
void mColorBrightness(Color *out, Color *color, float factor);
968+
969+
// Get color with contrast correction, contrast values between -1.0f and 1.0f
970+
void mColorContrast(Color *out, Color *color, float contrast);
971+
963972
// Get color with alpha applied, alpha goes from 0.0f to 1.0f
964973
void mColorAlpha(Color *out, Color *color, float alpha);
965974

raylib.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7716,6 +7716,51 @@
77167716
}
77177717
]
77187718
},
7719+
{
7720+
"name": "ColorTint",
7721+
"description": "Get color multiplied with another color",
7722+
"returnType": "Color",
7723+
"params": [
7724+
{
7725+
"type": "Color",
7726+
"name": "color"
7727+
},
7728+
{
7729+
"type": "Color",
7730+
"name": "tint"
7731+
}
7732+
]
7733+
},
7734+
{
7735+
"name": "ColorBrightness",
7736+
"description": "Get color with brightness correction, brightness factor goes from -1.0f to 1.0f",
7737+
"returnType": "Color",
7738+
"params": [
7739+
{
7740+
"type": "Color",
7741+
"name": "color"
7742+
},
7743+
{
7744+
"type": "float",
7745+
"name": "factor"
7746+
}
7747+
]
7748+
},
7749+
{
7750+
"name": "ColorContrast",
7751+
"description": "Get color with contrast correction, contrast values between -1.0f and 1.0f",
7752+
"returnType": "Color",
7753+
"params": [
7754+
{
7755+
"type": "Color",
7756+
"name": "color"
7757+
},
7758+
{
7759+
"type": "float",
7760+
"name": "contrast"
7761+
}
7762+
]
7763+
},
77197764
{
77207765
"name": "ColorAlpha",
77217766
"description": "Get color with alpha applied, alpha goes from 0.0f to 1.0f",

0 commit comments

Comments
 (0)