MCPcopy Create free account
hub / github.com/SFML/SFML / combine

Function combine

src/SFML/Graphics/Font.cpp:85–88  ·  view source on GitHub ↗

Combine outline thickness, boldness and font glyph index into a single 64-bit key

Source from the content-addressed store, hash-verified

83
84// Combine outline thickness, boldness and font glyph index into a single 64-bit key
85std::uint64_t combine(float outlineThickness, bool bold, std::uint32_t index)
86{
87 return (std::uint64_t{reinterpret<std::uint32_t>(outlineThickness)} << 32) | (std::uint64_t{bold} << 31) | index;
88}
89
90// Thread-safe unique identifier generator
91std::uint64_t getUniqueId() noexcept

Callers 2

Transform.cppFile · 0.85
Font.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected