#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <portability.h>
#include <tgf.h>
#include <time.h>
Go to the source code of this file.
|
| #define | mkdir(x) mkdir((x), S_IRWXU); |
| |
|
| void | gfDirInit (void) |
| |
| void | gfModInit (void) |
| |
| void | gfOsInit (void) |
| | Init of the module. More...
|
| |
| void | GfParmInit (void) |
| | Parameter set library API initialization, set up parameter set handle cache. More...
|
| |
| void | gfRlstInit (void) |
| |
| void | GfInit (void) |
| |
| void | gfMeanReset (tdble v, tMeanVal *pvt) |
| |
| tdble | gfMean (tdble v, tMeanVal *pvt, int n, int w) |
| |
| void | GfTime2Str (char *result, int resultSize, tdble sec, int sgn) |
| | Convert a time in seconds (float) to an ascii string. More...
|
| |
| char * | GetLocalDir (void) |
| |
| void | SetLocalDir (char *buf) |
| |
| char * | GetLibDir (void) |
| |
| void | SetLibDir (char *buf) |
| |
| char * | GetDataDir (void) |
| |
| void | SetDataDir (char *buf) |
| |
| int | GetSingleTextureMode (void) |
| |
| void | SetSingleTextureMode (void) |
| |
| int | GfNearestPow2 (int x) |
| |
| int | GfCreateDir (char *path) |
| | Create directory for given path recursively, so all missing parent directories are created as well. More...
|
| |
| int | GfCreateDirForFile (const char *filenameandpath) |
| | Create directory for given file path recursively, so all missing parent directories are created as well. More...
|
| |
◆ mkdir
| #define mkdir |
( |
|
x | ) |
mkdir((x), S_IRWXU); |
◆ GetDataDir()
| char* GetDataDir |
( |
void |
| ) |
|
◆ GetLibDir()
◆ GetLocalDir()
| char* GetLocalDir |
( |
void |
| ) |
|
◆ GetSingleTextureMode()
| int GetSingleTextureMode |
( |
void |
| ) |
|
◆ GfCreateDir()
| int GfCreateDir |
( |
char * |
path | ) |
|
Create directory for given path recursively, so all missing parent directories are created as well.
- Parameters
-
- Returns
- GF_DIR_CREATED if directory was created or already exits
GF_DIR_CREATION_FAILED if directory could not be created
Definition at line 309 of file tgf.cpp.
◆ GfCreateDirForFile()
| int GfCreateDirForFile |
( |
const char * |
filenameandpath | ) |
|
Create directory for given file path recursively, so all missing parent directories are created as well.
- Parameters
-
| [in] | filenameandpath | Path including file name |
- Returns
- GF_DIR_CREATED if directory was created or already exits
GF_DIR_CREATION_FAILED if directory could not be created
- See also
- GfCreateDir
Definition at line 364 of file tgf.cpp.
◆ gfDirInit()
◆ GfInit()
◆ gfMean()
◆ gfMeanReset()
◆ gfModInit()
◆ GfNearestPow2()
| int GfNearestPow2 |
( |
int |
x | ) |
|
◆ gfOsInit()
Init of the module.
Definition at line 41 of file os.cpp.
◆ gfRlstInit()
◆ SetDataDir()
| void SetDataDir |
( |
char * |
buf | ) |
|
◆ SetLibDir()
| void SetLibDir |
( |
char * |
buf | ) |
|
◆ SetLocalDir()
| void SetLocalDir |
( |
char * |
buf | ) |
|
◆ SetSingleTextureMode()
| void SetSingleTextureMode |
( |
void |
| ) |
|
◆ dataDir
| char* dataDir = strdup("") |
|
static |
◆ libDir
| char* libDir = strdup("") |
|
static |
◆ localDir
| char* localDir = strdup("") |
|
static |
◆ singleTextureMode
| int singleTextureMode = 0 |
|
static |