Update to raylib5.5
This commit is contained in:
parent
279562d212
commit
afad04c6e1
@ -43,12 +43,12 @@ int main(int argc, char const *argv[])
|
|||||||
|
|
||||||
if (!std::filesystem::is_directory(RAYLIB_DIR))
|
if (!std::filesystem::is_directory(RAYLIB_DIR))
|
||||||
{
|
{
|
||||||
command = {"wget", "https://github.com/raysan5/raylib/releases/download/5.0/raylib-5.0_linux_amd64.tar.gz"};
|
command = {"wget", "https://github.com/raysan5/raylib/releases/download/5.5/raylib-5.5_linux_amd64.tar.gz"};
|
||||||
run_command(command);
|
run_command(command);
|
||||||
command = {"tar", "-xzvf", "raylib-5.0_linux_amd64.tar.gz"};
|
command = {"tar", "-xzvf", "raylib-5.5_linux_amd64.tar.gz"};
|
||||||
run_command(command);
|
run_command(command);
|
||||||
std::filesystem::rename("raylib-5.0_linux_amd64", "raylib");
|
std::filesystem::rename("raylib-5.5_linux_amd64", "raylib");
|
||||||
std::filesystem::remove_all("raylib-5.0_linux_amd64.tar.gz");
|
std::filesystem::remove_all("raylib-5.5_linux_amd64.tar.gz");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!std::filesystem::is_directory(RAYLIB_DIR))
|
if (!std::filesystem::is_directory(RAYLIB_DIR))
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#include <raylib.h>
|
#include <raylib.h>
|
||||||
|
|
||||||
Color ColorLerp(Color c1, Color c2, float amount);
|
|
||||||
Color ColorAdd(Color c1, Color c2);
|
Color ColorAdd(Color c1, Color c2);
|
||||||
Color ColorAddValue(Color c, int add);
|
Color ColorAddValue(Color c, int add);
|
10
src/Math.cpp
10
src/Math.cpp
@ -6,16 +6,6 @@
|
|||||||
|
|
||||||
#include <raymath.h>
|
#include <raymath.h>
|
||||||
|
|
||||||
Color ColorLerp(Color c1, Color c2, float amount)
|
|
||||||
{
|
|
||||||
Color ret{0};
|
|
||||||
ret.r = Clamp(Lerp(c1.r, c2.r, amount), 0, 255);
|
|
||||||
ret.g = Clamp(Lerp(c1.g, c2.g, amount), 0, 255);
|
|
||||||
ret.b = Clamp(Lerp(c1.b, c2.b, amount), 0, 255);
|
|
||||||
ret.a = Clamp(Lerp(c1.a, c2.a, amount), 0, 255);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
Color ColorAddValue(Color c, int add)
|
Color ColorAddValue(Color c, int add)
|
||||||
{
|
{
|
||||||
int r = std::clamp(c.r + add, 0, 255);
|
int r = std::clamp(c.r + add, 0, 255);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user