complete left click event handle

This commit is contained in:
2017-02-09 22:08:30 +00:00
parent de1784e932
commit 914fc34331
8 changed files with 140 additions and 11 deletions

View File

@@ -3,6 +3,9 @@
uint16_t constexpr const_hash(const char* input)
{
return *input ?
static_cast<uint16_t>(*input) + 33 * const_hash(input + 1) :
5381;
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();