![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Classes | |
struct | fnv_1a_params |
Base specialization for fnv1a params. More... | |
struct | fnv_1a_params< std::uint32_t > |
Fnv1a 32 bit specialization. More... | |
struct | fnv_1a_params< std::uint64_t > |
Fnv1a 64 bit specialization. More... | |
class | Random |
Generates random numbers. More... | |
class | RectPack |
Rectangle 2D bin packing class. More... | |
class | ZLib |
Compressor and Decompressor. More... | |
Concepts | |
concept | valid_fnv_bits |
Concept to enforce fnv bit types. | |
Typedefs | |
template<typename Type > | |
using | conditional_distribution |
Source: http://stackoverflow.com/a/32907541. | |
Functions | |
std::string | encode_base64 (const std::string &input) |
Compresses string into Base64. | |
std::string | decode_base64 (const std::string &input) |
Decompresses string into Base64. | |
template<valid_fnv_bits bits = std::uint64_t> | |
constexpr bits | fnv1a (const char *const str, const bits value=fnv_1a_params< bits >::offset) noexcept |
Convert string to hash. | |
template<meta::is_arithmetic Type> | |
float | normalize (const Type val, const Type max) noexcept |
Calc normalized value from range. | |
template<typename Type > | |
bool | contains (const std::vector< Type > &cont, const Type &val) noexcept |
See if a vector contains a value. | |
std::string | encode_zlib (const std::string &input) |
Compresses string into ZLib. | |
std::string | decode_zlib (const std::string &input) |
Decompresses string into ZLib. | |
using galaxy::math::conditional_distribution |
Source: http://stackoverflow.com/a/32907541.
Definition at line 26 of file Random.hpp.
|
nodiscard |
Compresses string into Base64.
The MIT License (MIT) Copyright(c) 2016 tomykaira
input | Input data to convert. |
Definition at line 51 of file Base64.cpp.
|
nodiscard |
Decompresses string into Base64.
The MIT License (MIT) Copyright(c) 2016 tomykaira
input | Input data to convert. |
Definition at line 105 of file Base64.cpp.
|
inlineconstexprnoexcept |
Convert string to hash.
bits | 32 or 64 bit type. |
str | String to hash. |
value | Hashing value passed recursively. |
Definition at line 64 of file FNV1a.hpp.
|
inlinenodiscardnoexcept |
Calc normalized value from range.
Type | Arithmetic type to normalize. |
val | Value to divide by max. |
max | Value representing 1.0f. |
Definition at line 32 of file Generic.hpp.
|
inlinenodiscardnoexcept |
See if a vector contains a value.
Type | Vector type. Must have an overloaded '==' operator. |
cont | Container to check. |
val | Value to look for. |
Definition at line 49 of file Generic.hpp.
|
nodiscard |