Game Develop C++ Platform: Common programming tools

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Modules
- Classes
- Files

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Classes | Functions
Common programming tools

## Classes

struct | StringEmpty
| Functor testing if a std::string is empty. More...

## Functions

template<typename T >
int | ToInt (const T &value)
template<typename T >
float | ToFloat (const T &value)
template<typename T >
double | ToDouble (const T &value)
template<typename T >
std::string | ToString (const T &value)
double | GDRound (double d)

## Detailed Description

## Function Documentation

double GDRound | ( | double | d) |  |

inline

Round the number to the nearest integer

template<typename T >

double ToDouble | ( | const T & | value) |  |

Convert anything to a double

template<typename T >

float ToFloat | ( | const T & | value) |  |

Convert anything to a float

template<typename T >

int ToInt | ( | const T & | value) |  |

Convert anything to an integer. Example:

std::string five = 5;
int number = ToInt(five);
template<typename T >

std::string ToString | ( | const T & | value) |  |

Convert anything to a std::string