Skyscraper 2.0
globals.h File Reference
#include <string>
#include <vector>
#include <Ogre.h>
Include dependency graph for globals.h:

Go to the source code of this file.

Namespaces

namespace  SBS
 

Macros

#define SBSIMPEXP
 
#define SBSIMPEXP_DATA(type)
 

Typedefs

typedef Ogre::Real Real
 
typedef Ogre::Vector3 Vector3
 
typedef Ogre::Vector2 Vector2
 
typedef Ogre::Quaternion Quaternion
 
typedef Ogre::Degree Degree
 
typedef Ogre::Radian Radian
 
typedef Ogre::Ray Ray
 
typedef Ogre::Matrix3 Matrix3
 
typedef Ogre::Plane Plane
 
typedef unsigned int uint
 

Functions

bool SBS::IsEven (int Number)
 
bool SBS::IsNumeric (char character)
 
bool SBS::IsNumeric (const std::string &string)
 
bool SBS::IsNumeric (const std::string &string, int &number)
 
bool SBS::IsNumeric (const std::string &string, float &number)
 
bool SBS::IsNumeric (const std::string &string, double &number)
 
std::string SBS::BoolToString (bool item)
 
Real SBS::RadiansToDegrees (Real radians)
 
Real SBS::DegreesToRadians (Real degrees)
 
Real SBS::Min (Real a, Real b, Real c)
 
Real SBS::Max (Real a, Real b, Real c)
 
Real SBS::Min (Real a, Real b, Real c, Real d)
 
Real SBS::Max (Real a, Real b, Real c, Real d)
 
std::string SBS::SetCaseCopy (std::string string, bool uppercase)
 
void SBS::SetCase (std::string &string, bool uppercase)
 
int SBS::FindWithCase (const std::string &string, bool uppercase, const std::string &key, int offset)
 
void SBS::TrimString (std::string &string)
 
std::string SBS::TrimStringCopy (std::string string)
 
void SBS::ReplaceAll (std::string &string, const std::string &original, const std::string &replacement)
 
bool SBS::StartsWith (const std::string &string, const std::string &check_string, bool ignore_case)
 
bool SBS::StartsWithNoCase (const std::string &string, const std::string &check_string)
 
void SBS::SplitString (std::vector< std::string > &dest_array, const std::string &original_string, char separator)
 
std::string SBS::ToString (int number)
 
std::string SBS::ToString (float number)
 
std::string SBS::ToString (double number)
 
std::string SBS::ToString (unsigned long number)
 
float SBS::Log2 (float number)
 
double SBS::Log2 (double number)
 
float SBS::Round (float number, int decimal_places)
 
double SBS::Round (double number, int decimal_places)
 
Vector3 SBS::Round (const Vector3 &value, int decimal_places)
 
Vector2 SBS::Round (const Vector2 &value, int decimal_places)
 
bool SBS::IsBoolean (std::string string)
 
Real SBS::ToFloat (const std::string &string)
 
int SBS::ToInt (const std::string &string)
 
bool SBS::ToBool (std::string string)
 
std::string SBS::TruncateNumber (float value, int decimals)
 
std::string SBS::TruncateNumber (double value, int decimals)
 
std::string SBS::TruncateNumber (const std::string &value, int decimals)
 

Variables

const Real SBS::pi = 3.14159265
 

Macro Definition Documentation

◆ SBSIMPEXP

#define SBSIMPEXP

Definition at line 53 of file globals.h.

◆ SBSIMPEXP_DATA

#define SBSIMPEXP_DATA ( type)

Definition at line 54 of file globals.h.

Typedef Documentation

◆ Degree

typedef Ogre::Degree Degree

Definition at line 61 of file globals.h.

◆ Matrix3

typedef Ogre::Matrix3 Matrix3

Definition at line 64 of file globals.h.

◆ Plane

typedef Ogre::Plane Plane

Definition at line 65 of file globals.h.

◆ Quaternion

typedef Ogre::Quaternion Quaternion

Definition at line 60 of file globals.h.

◆ Radian

typedef Ogre::Radian Radian

Definition at line 62 of file globals.h.

◆ Ray

typedef Ogre::Ray Ray

Definition at line 63 of file globals.h.

◆ Real

typedef Ogre::Real Real

Definition at line 57 of file globals.h.

◆ uint

typedef unsigned int uint

Definition at line 67 of file globals.h.

◆ Vector2

typedef Ogre::Vector2 Vector2

Definition at line 59 of file globals.h.

◆ Vector3

typedef Ogre::Vector3 Vector3

Definition at line 58 of file globals.h.