From 69e6a505d6dda11d4b510901a7b344315bbc5ebe Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 29 Apr 2024 21:35:16 -0400 Subject: [PATCH] make color --- CMakeLists.txt | 2 +- include/blt/math/vectors.h | 8 ++++++++ libraries/parallel-hashmap | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3e837f..fa617b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 0.16.12) +set(BLT_VERSION 0.16.13) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/include/blt/math/vectors.h b/include/blt/math/vectors.h index 31627b1..35796ae 100644 --- a/include/blt/math/vectors.h +++ b/include/blt/math/vectors.h @@ -415,6 +415,14 @@ namespace blt using vec3 = vec3f; using vec4 = vec4f; + using color4 = vec4; + using color3 = vec3; + + color4 make_color(float r, float g, float b) + { + return color4{r, g, b}; + } + namespace vec_algorithm { static inline void findOrthogonalBasis(const vec3& v, vec3& v1, vec3& v2, vec3& v3) diff --git a/libraries/parallel-hashmap b/libraries/parallel-hashmap index 1036816..7ef2e73 160000 --- a/libraries/parallel-hashmap +++ b/libraries/parallel-hashmap @@ -1 +1 @@ -Subproject commit 10368163ab1f4367d2f0685b5928b1c973ebd1ec +Subproject commit 7ef2e733416953b222851f9a360d7fc72d068ee5