#include "omicron/internal.h"
Go to the source code of this file.
Functions | |
| void | _convert_file_path (char *path) |
| void | _convert_pak_path (char *path) |
| char * | _strtrm (char *string, char *trimchrs) |
| float | _interpolate_float_linear (float a, float b, float frac) |
| Interpolate two floats linearly. | |
| schar | _sgn (float f) |
| void | _swap_long (ulong &l) |
Definition in file o_shared.cpp.
|
|
Convert a path for a file on disk Converts all '/' in a string into an '\' when running under windows. And '\' into '/' under *nixen.
Definition at line 73 of file o_shared.cpp. Referenced by file_manager_c::load_pak(). |
|
|
Convert a path for a file in a pak Converts '\' into '/' as used in pak files.
Definition at line 88 of file o_shared.cpp. |
|
||||||||||||||||
|
Definition at line 209 of file o_shared.cpp. Referenced by vec4_c::linear(), vec2_c::linear(), and vec3_c::linear(). |
|
|
Get the sign of a float Returns -1 if negative, 0 if zero and 1 if positive Definition at line 224 of file o_shared.cpp. Referenced by brushface_c::cut(), and plane_pointside(). |
|
||||||||||||
|
Trim a string Removes any char from beginning and end of a string that is given in trimchrs. Returns a pointer to the first char that was not trimmed.
Definition at line 143 of file o_shared.cpp. Referenced by gui_c::load(). |
|
|
Swap a long Swaps the hi and lo word of a long. Definition at line 236 of file o_shared.cpp. |
1.2.18