14 lines
354 B
C
14 lines
354 B
C
#pragma once
|
|
|
|
uint16_t constexpr const_hash(const char* input)
|
|
{
|
|
return *input ?
|
|
static_cast<uint16_t>(*input) + 33 * const_hash(input + 1) :
|
|
5381;
|
|
}
|
|
|
|
bool point_in_rect(const glm::vec2& point, const glm::vec4& rect);
|
|
glm::vec4 rand_color();
|
|
glm::vec3 convert_hsv2rgb(const glm::vec3 c);
|
|
glm::vec3 convert_rgb2hsv(const glm::vec3 c);
|