Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Functions
cqsp::util Namespace Reference

Functions

std::tuple< int, int, int > HexToRgb (const std::string &str)
 
glm::vec3 toHSL (const glm::vec3 rgb)
 
glm::vec3 toRGB (const glm::vec3 hsl)
 
std::string strip (const std::string &inpt)
 
std::vector< std::string > split (const std::string &s, const std::string &delimiter)
 
template<typename T >
std::string NumberToHumanString (const T l)
 
template<typename T >
std::string NumberToPowerString (const T l)
 

Function Documentation

◆ HexToRgb()

std::tuple< int, int, int > cqsp::util::HexToRgb ( const std::string &  str)

Converts hex color string to rgb, scaled from 0 to 255.

◆ NumberToHumanString()

template<typename T >
std::string cqsp::util::NumberToHumanString ( const T  l)
inline

◆ NumberToPowerString()

template<typename T >
std::string cqsp::util::NumberToPowerString ( const T  l)
inline

Number to unit on power (like watts)

◆ split()

std::vector< std::string > cqsp::util::split ( const std::string &  s,
const std::string &  delimiter 
)

◆ strip()

std::string cqsp::util::strip ( const std::string &  inpt)

◆ toHSL()

glm::vec3 cqsp::util::toHSL ( const glm::vec3  rgb)

◆ toRGB()

glm::vec3 cqsp::util::toRGB ( const glm::vec3  hsl)