Pioneer
Loading...
Searching...
No Matches
Macros | Functions
libs.h File Reference
#include <SDL.h>
#include <SDL_image.h>
#include <sigc++/sigc++.h>
#include <algorithm>
#include <cassert>
#include <cerrno>
#include <cfloat>
#include <cinttypes>
#include <cmath>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <limits>
#include <map>
#include <memory>
#include <string>
#include <vector>
#include "fixed.h"
#include "matrix3x3.h"
#include "matrix4x4.h"
#include "vector2.h"
#include "vector3.h"
#include "Aabb.h"
#include "Color.h"
#include "Random.h"
#include "FloatComparison.h"
#include "RefCounted.h"
#include "SmartPtr.h"
#include "profiler/Profiler.h"
Include dependency graph for libs.h:

Go to the source code of this file.

Macros

#define SIZET_FMT   "%zu"
 
#define PiVerify(x)   assert(x)
 
#define COUNTOF(array)   (sizeof(COUNTOF_Helper(array)))
 

Functions

template<class T >
const T & Clamp (const T &x, const T &min, const T &max)
 
constexpr double DEG2RAD (double x)
 
constexpr float DEG2RAD (float x)
 
constexpr double RAD2DEG (double x)
 
constexpr float RAD2DEG (float x)
 
template<typename T , size_t N>
char(& COUNTOF_Helper (T(&array)[N]))[N]
 

Macro Definition Documentation

◆ COUNTOF

#define COUNTOF (   array)    (sizeof(COUNTOF_Helper(array)))

◆ PiVerify

#define PiVerify (   x)    assert(x)

◆ SIZET_FMT

#define SIZET_FMT   "%zu"

Function Documentation

◆ Clamp()

template<class T >
const T & Clamp ( const T &  x,
const T &  min,
const T &  max 
)
inline

◆ COUNTOF_Helper()

template<typename T , size_t N>
char(& COUNTOF_Helper ( T(&)  array[N]) )[N]

◆ DEG2RAD() [1/2]

constexpr double DEG2RAD ( double  x)
inlineconstexpr

◆ DEG2RAD() [2/2]

constexpr float DEG2RAD ( float  x)
inlineconstexpr

◆ RAD2DEG() [1/2]

constexpr double RAD2DEG ( double  x)
inlineconstexpr

◆ RAD2DEG() [2/2]

constexpr float RAD2DEG ( float  x)
inlineconstexpr