|
CoriEngine
|
A namespace for utilities of different kinds. More...
Namespaces | |
| namespace | Internal |
Classes | |
| struct | AABB |
| Axis-Aligned bounding box. More... | |
| struct | HashedTag64 |
| HashedTag that uses a 64bit string hash (FNV-1a). More... | |
| class | RandomUint32 |
| Random uint32_t generator. More... | |
Concepts | |
| concept | IsInPack |
| Checks if T is present in Types pack. | |
| concept | HasDuplicates |
| Checks if Types pack has duplicated types. | |
| concept | IsStreamable |
| Checks if T can be streamed. | |
Typedefs | |
| using | StringHash64 = uint64_t |
| using | StringHash32 = entt::hashed_string::hash_type |
Functions | |
| AABB | CalculateAABB (const glm::mat3 &transform, const glm::vec2 halfSize) |
| Calculates the AABB for the quad taking into account rotation and scale. | |
| bool | AABBOverlapCheck (const AABB &a, const AABB &b) |
| Checks if 2 AABBs overlap. | |
| template<typename T> | |
| consteval uint64_t | GetAggregateStructUID () |
| Generates a stable, unique ID for an aggregate struct at compile-time. | |
| constexpr std::uint64_t | fnv1a64 (const char *str, const std::size_t len) |
| Computes the 64bit FNV-1a string hash. | |
| std::u32string | Utf8ToUtf32 (const std::string_view &view) |
| Converts a UTF-8 variable length encoded string to a UTF-32 fixed length encoded string. | |
| std::u32string | Utf8ToUtf32 (const std::string &string) |
| Converts a UTF-8 variable length encoded string to a UTF-32 fixed length encoded string. | |
A namespace for utilities of different kinds.
| using Cori::Utility::StringHash32 = entt::hashed_string::hash_type |
Definition at line 19 of file StringHash.hpp.
| using Cori::Utility::StringHash64 = uint64_t |
Definition at line 18 of file StringHash.hpp.
|
inlinenodiscard |
|
constexpr |
Computes the 64bit FNV-1a string hash.
Definition at line 9 of file StringHash.hpp.
|
consteval |
Generates a stable, unique ID for an aggregate struct at compile-time.
| T | Struct type to generate the UID for. |
The ID is sensitive to the struct's name and the order and types of its members.
It is stable across different runs for the same compiler.
Definition at line 56 of file AggregateStructUID.hpp.

|
inline |
|
inline |