|
template<class X , class X1 , class X2 > |
bool | BETWEEN (const X &x, const X1 &x1, const X2 &x2) |
|
template<class X > |
bool | IS_NEGATIVE (const X &x) |
|
template<class X > |
bool | IS_POSITIVE (const X &x) |
|
template<class X > |
bool | CloseToZero (const X x, const X threshold=X(1e-1)) |
|
template<class X > |
bool | VeryCloseToZero (X x) |
|
template<class X > |
bool | IsNearZero (X x) |
|
template<class X > |
bool | IS_ZERO (X x) |
|
float | OpenGLVersion () |
|
bool | gltIsExtSupported (const char *extension) |
|
unsigned char * | GlsDefinedColor (GlsDefinedColorEnum index) |
|
void | ChangeGlsDefinedColor (GlsDefinedColorEnum index, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) |
|
UTF16String | ConvertUTF8ToWide (const std::string &src) |
|
template<class T1 , class T2 > |
bool | Equal (T1 x, T2 y, float precision=0.001f) |
|
template<class T > |
const T & | Min (const T &x, const T &y) |
|
template<class T > |
const T & | Max (const T &x, const T &y) |
|
template<class T , class Pred > |
const T & | Min (const T &x, const T &y, Pred pr) |
|
template<class T , class Pred > |
const T & | Max (const T &x, const T &y, Pred pr) |
|
template<class T > |
GlsMatrixAffine< T > | FindCoordinateTransformation (const Vector &new_origin, const Vector &new_i, const Vector &new_j, const Vector &new_k) |
|
template<class T > |
void | FindCoordinateTransformation (const Vector &new_origin, const Vector &new_i, const Vector &new_j, const Vector &new_k, GlsMatrixAffine< T > &result) |
|
bool | GetObjectCoordinatesTransformSameView (DisplayObject *from, DisplayObject *to, GlsMatrixType *outTransform) |
|
DisplayFrame * | GetTopLevelDisplayFrame (DisplayFrame *frame) |
|
bool | GetObjectCoordinatesTransform (DisplayObject *from, DisplayObject *to, GlsMatrixType *outTransform) |
|
bool | NotColinear (const Vector &a, const Vector &b, const Vector &c) |
|
bool | FindNonColinearVertices (int arraySize, Vector array[], int &index1, int &index2, int &index3, bool isVectorArray=true) |
|
bool | FindNonColinearVertices (int arraySize, Vertex array[], int &index1, int &index2, int &index3) |
|
bool | CalculateTexPointsFromTexCoords (DisplayObject *object) |
|
int | EncodeString (char *dest, const char *src, const int dest_str_length) |
|
std::string | EncodeString (const std::string &src) |
|
int | EncodedStringMinLength () |
|
int | C_EncodeString (char *dest, const char *src, const int dest_str_length) |
|
std::string | C_EncodeString (const std::string &src) |
|
int | DecodeString (char *dest, const char *src, const int dest_str_length) |
|
std::string | DecodeString (const std::string &src) |
|
char * | MakeRelativePath (const char *originalPath, const char *relativePath) |
|
void | ConvertBackslashToSlash (char *str) |
|
void | ConvertBackslashToSlash (std::string &str) |
|
int | range_check (int num, double val,...) |
|
int | Safe_fopen (const char *filename, char *flags, FILE **f) |
|
int | Safe_fopen (const char *filename, char *flags, std::fstream &outstr) |
|
void | PushResourcePath (const char *resourcePath) |
|
void | PopResourcePath () |
|
void | PushResourceFinder (std::string(*finder)(const std::string &)) |
|
std::string | ResolvePath (const char *path) |
|
std::string | ResolvePath (const std::string &path) |
|
FILE * | gls_fopen (const char *filename, const char *flags) |
|
int | gls_unlink (const char *filename) |
|
std::string | ResolveRuntimeResourcePath (const char *fileName) |
|
bool | FileExists (const char *filename) |
|
bool | FileExists (const std::string &filename) |
|
bool | IsDirectory (const char *filename) |
|
bool | IsDirectory (const std::string &filename) |
|
std::string | FileExtension (const std::string &filepath) |
|
std::string | FileName (const std::string &filepath) |
|
std::string | FilePath (const std::string &filepath) |
|
const char * | GetFilePath (const char *name) |
|
char * | GetFileName (const char *name) |
|
void | AppendTrailingSlash (char *s) |
|
void | AppendTrailingSlash (std::string &s) |
|
char * | PathToOS (const char *path) |
|
std::string | GetExtension (const std::string &filename) |
|
const char * | GetBaseName (const char *path) |
|
char * | GetBaseName (char *path) |
|
void | RemoveDoubleSlashes (char *path, char slash='/') |
|
void | RemoveSpaces (std::string &entry) |
|
void | TrimSpaces (std::string &entry) |
|
float | AngularDistanceDeg (float angle1, float angle2) |
|
float | AngularDistanceRad (float angle1, float angle2) |
|
bool | ContainsNonBlank (const std::string &val) |
|
bool | GetNoSpaces (FILE *f, char *result, int maxLen) |
|
bool | GetToEnd (std::istream &instr, std::string &result, bool decode) |
|
bool | GetVertex (std::istream &instr, Vertex *vert, bool getColor) |
|
bool | GetComponentClassNames (const char *dllFileName, DynamicArray< std::string > &nameList, const char *createClassTag="CreateComponent_") |
|
std::string | GetDefaultComponentClassName (const char *dllFileName) |
|
std::string | GetQualifiedInstanceName (const DisplayFrame *topFrame, const DisplayObject *obj) |
|
bool | OpenFileDialog (Fl_Window *win, char *filePath, unsigned int filePathSize, char *directory=NULL, const char *filterStr=NULL, const char *defaultExt=NULL, const char *title=NULL, bool multiSelect=false, bool createFile=false, bool fileMustExist=false, bool pathMustExist=false, bool noChangeDirectory=false) |
|
bool | SaveFileDialog (Fl_Window *win, char *filePath, unsigned int filePathSize, char *directory=NULL, const char *filterStr=NULL, const char *defaultExt=NULL, const char *title=NULL, bool createFile=false, bool fileMustExist=false, bool pathMustExist=false, bool noChangeDirectory=false) |
|
void | CheckGLError () |
| Checks the OpenGL error state, and prints to stdout if there was an error.
|
|
std::string | Uppercase (const std::string &str) |
|
std::string | ReplaceEnvironmentVariables (const char *originalPath) |
|
std::ostream & | operator<< (std::ostream &outstr, const GlsMultiValBase &multiVal) |
|
std::istream & | operator>> (std::istream &instr, GlsMultiValBase &multiVal) |
|
std::ostream & | operator<< (std::ostream &outstr, const GlsPropString &str) |
|
std::istream & | operator>> (std::istream &instr, GlsPropString &str) |
|
std::ostream & | operator<< (std::ostream &outstr, const GlsPropStringQuoted &str) |
|
std::istream & | operator>> (std::istream &instr, GlsPropStringQuoted &str) |
|
void | SpawnBrowser (const char *url) |
|
bool | CheckDistiLicense (const char *licenseGroupName, const char *feature, const char *version, bool quiet) |
|
void | GlsGetOrtho (GlsMatrixType &m, double left, double right, double bottom, double top, double zNear, double zFar) |
|
void | GlsGetPerspective (GlsMatrixType &m, double fovy, double aspect, double zNear, double zFar) |
|
template<class T > |
T | Clamp (const T &val, const T &min, const T &max) |
|
void | Split (const std::string &s, const char delim, std::vector< std::string > &elems, const std::size_t maxElems=0) |
|
std::vector< std::string > | Split (const std::string &s, const char delim, const std::size_t maxElems=0) |
|
std::string | MakeString (const char *const cStr) |
|
void | _checkPointerSize () |
| We need this function because 'static_assert' replacements for pre-C++11 compilers cannot be at file scope.
|
|
void | glsPerspective (double fovy, double aspect, double zNear, double zFar) |
|
bool | glsProject (double objx, double objy, double objz, const double modelMatrix[16], const double projMatrix[16], const int viewport[4], double *winx, double *winy, double *winz) |
|
bool | glsUnProject (double winx, double winy, double winz, const double modelMatrix[16], const double projMatrix[16], const int viewport[4], double *objx, double *objy, double *objz) |
|