|
Defines |
| #define | DLLIMPORT __attribute__ ((visibility("default"))) |
| #define | DLLEXPORT |
| #define | __max(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | __min(a, b) (((a) < (b)) ? (a) : (b)) |
| #define | _strnicmp strncasecmp |
| #define | _isnan isnan |
| #define | SAFE_DELETE(a) |
| #define | SAFE_DELETE_ARR(a) |
| #define | SAFE_DELETE_ARR_EACH(a, cnt) |
| #define | SAFE_RELEASE(a) |
| #define | VECTOR3_XAXIS VECTOR3(1,0,0) |
| #define | VECTOR3_YAXIS VECTOR3(0,1,0) |
| #define | VECTOR3_ZAXIS VECTOR3(0,0,1) |
| #define | ABS absolute |
| | Absolute value.
|
Typedefs |
| typedef vector2 | VECTOR2 |
| typedef vector3 | VECTOR3 |
| typedef vector4 | VECTOR4 |
| typedef matrix | MATRIX |
| typedef plane | PLANE |
Functions |
| wxString | CloneWxString (const wxString &str) |
| | Clone wxString.
|
| bool | isTrue (const wxString &val) |
| | Check if given string is one of defined true values.
|
| int | roundVR (float x) |
| | Round float number.
|
| int | roundVR (double x) |
| | Round double number.
|
| template<typename T> |
| T | absolute (T x) |
| | Absolute value.
|
| int | random (int min, int max) |
| | Random generator with limits (included).
|
| float | random (float min, float max) |
| | Random generator with limits (included).
|
| double | random (double min, double max) |
| | Random generator with limits (included).
|
Variables |
| const float | EPSILON = 1e-5f |
| | Smallest distinguishable value.
|
| const float | DEG2RAD = 0.017453293f |
| | Degrees to radians coeficient.
|
| const float | RAD2DEG = 57.29577951f |
| | Radians to degrees coeficient.
|
| const float | MAX_FLOAT = 3.40282347e37F |
| | Maximal float.
|
| const float | MIN_FLOAT = -3.40282347e37F |
| | Minimal float.
|
| const wxString | TRUE_STRINGS [] = { wxT("true"), wxT("enable"), wxT("enabled"), wxT("on"), wxT("yes"), wxT("1") } |
| | Allowed true values.
|
| const size_t | TRUE_STRINGS_COUNT = 6 |
| const unsigned | GL_ID_NONE = (unsigned)~(unsigned(0)) |