|
| #define | MAX(x, y) ((x) > (y) ? (x) : (y)) |
| |
| #define | MIN(x, y) ((x) < (y) ? (x) : (y)) |
| |
| #define | FREEZ(x) |
| |
| #define | freez FREEZ |
| |
| #define | RADS2RPM(x) ((x)*9.549296585) |
| | Radian/s to RPM conversion. More...
|
| |
| #define | RPM2RADS(x) ((x)*.104719755) |
| | RPM to Radian/s conversion. More...
|
| |
| #define | RAD2DEG(x) ((x)*(180.0/PI)) |
| | Radian to degree conversion. More...
|
| |
| #define | DEG2RAD(x) ((x)*(PI/180.0)) |
| | Degree to radian conversion. More...
|
| |
| #define | FEET2M(x) ((x)*0.304801) |
| | Feet to meter conversion. More...
|
| |
| #define | SIGN(x) ((x) < 0.0f ? -1.0f : 1.0f) |
| | Sign of the expression. More...
|
| |
| #define | NORM0_2PI(x) |
| | Angle normalization between 0 and 2 * PI. More...
|
| |
| #define | NORM_PI_PI(x) |
| | Angle normalization between -PI and PI. More...
|
| |
| #define | DIST(x1, y1, x2, y2) sqrt(((x1) - (x2)) * ((x1) - (x2)) + ((y1) - (y2)) * ((y1) - (y2))) |
| | Distance between two points. More...
|
| |
| #define | MAX_MOD_ITF 10 |
| | Maximum number of interface in one DLL. More...
|
| |
| #define | GFPARM_PARAMETER 0 |
| | Parameter file. More...
|
| |
| #define | GFPARM_TEMPLATE 1 |
| | Template file. More...
|
| |
| #define | GFPARM_PARAM_STR "param" |
| |
| #define | GFPARM_TEMPL_STR "template" |
| |
| #define | GFPARM_MODIFIABLE 1 |
| | Parameter file allowed to be modified. More...
|
| |
| #define | GFPARM_WRITABLE 2 |
| | Parameter file allowed to be saved on disk. More...
|
| |
| #define | GFPARM_RMODE_STD 0x01 |
| | if handle already openned return it More...
|
| |
| #define | GFPARM_RMODE_REREAD 0x02 |
| | reread the parameters from file and release the previous ones More...
|
| |
| #define | GFPARM_RMODE_CREAT 0x04 |
| | Create the file if doesn't exist. More...
|
| |
| #define | GFPARM_RMODE_PRIVATE 0x08 |
| |
| #define | GFPARM_MMODE_SRC 1 |
| | use ref and modify existing parameters with tgt More...
|
| |
| #define | GFPARM_MMODE_DST 2 |
| | use tgt and verify ref parameters More...
|
| |
| #define | GFPARM_MMODE_RELSRC 4 |
| | release ref after the merge More...
|
| |
| #define | GFPARM_MMODE_RELDST 8 |
| | release tgt after the merge More...
|
| |
| #define | GfTrace printf |
| |
| #define | GfError printf |
| |
| #define | GfOut printf |
| |
| #define | GF_MEAN_MAX_VAL 5 |
| |
| #define | GF_TAILQ_HEAD(name, type) |
| | Head type definition. More...
|
| |
| #define | GF_TAILQ_ENTRY(type) |
| | Entry in structure. More...
|
| |
| #define | GF_TAILQ_FIRST(head) ((head)->tqh_first) |
| | First element of a TAILQ. More...
|
| |
| #define | GF_TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) |
| | Next element of a TAILQ. More...
|
| |
| #define | GF_TAILQ_END(head) NULL |
| | End of a TAILQ. More...
|
| |
| #define | GF_TAILQ_LAST(head, headname) (*(((struct headname *)((head)->tqh_last))->tqh_last)) |
| | Last element of a TAILQ. More...
|
| |
| #define | GF_TAILQ_PREV(elm, headname, field) (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last)) |
| | Previous element of a TAILQ. More...
|
| |
| #define | GF_TAILQ_INIT(head) |
| | Head initialization (Mandatory) More...
|
| |
| #define | GF_TAILQ_INIT_ENTRY(elm, field) |
| | Entry initialization (optionnal if inserted) More...
|
| |
| #define | GF_TAILQ_INSERT_HEAD(head, elm, field) |
| | Insert an element at the head. More...
|
| |
| #define | GF_TAILQ_INSERT_TAIL(head, elm, field) |
| | Insert an element at the tail. More...
|
| |
| #define | GF_TAILQ_INSERT_AFTER(head, listelm, elm, field) |
| | Insert an element after another element. More...
|
| |
| #define | GF_TAILQ_INSERT_BEFORE(listelm, elm, field) |
| | Insert an element before another element. More...
|
| |
| #define | GF_TAILQ_REMOVE(head, elm, field) |
| | Remove an element. More...
|
| |
| #define | START_PROFILE(a) |
| |
| #define | STOP_PROFILE(a) |
| |
| #define | STOP_ACTIVE_PROFILES() |
| |
| #define | PRINT_PROFILE() |
| |
| #define | GF_HASH_TYPE_STR 0 |
| | String key based hash table. More...
|
| |
| #define | GF_HASH_TYPE_BUF 1 |
| | Memory buffer key based hash table. More...
|
| |
| #define | GF_DIR_CREATION_FAILED 0 |
| |
| #define | GF_DIR_CREATED 1 |
| |
|
| void | GfInit (void) |
| |
| int | GfModLoad (unsigned int gfid, char *dllname, tModList **modlist) |
| | Load the specified DLLs. More...
|
| |
| int | GfModLoadDir (unsigned int gfid, char *dir, tModList **modlist) |
| | Load the DLLs in the specified directory. More...
|
| |
| int | GfModUnloadList (tModList **modlist) |
| | Unload the DLLs of a list. More...
|
| |
| int | GfModInfo (unsigned int gfid, char *filename, tModList **modlist) |
| | Get the generic information of the specified DLL. More...
|
| |
| int | GfModInfoDir (unsigned int gfid, char *dir, int level, tModList **modlist) |
| | Get the generic module information of the DLLs of the specified directory. More...
|
| |
| int | GfModFreeInfoList (tModList **modlist) |
| | Free the info contained in the specified list. More...
|
| |
| tFList * | GfDirGetList (const char *dir) |
| | Get the list of files of a given directory. More...
|
| |
| tFList * | GfDirGetListFiltered (const char *dir, const char *suffix) |
| | Get the list of files with matching suffix of a given directory. More...
|
| |
| void | GfDirFreeList (tFList *list, tfDirfreeUserData freeUserDatabool, bool freename=false, bool freedispname=false) |
| | Free a directory list. More...
|
| |
| void * | GfParmReadFile (const char *file, int mode) |
| | Read parameter set from file and return handle to parameter set. More...
|
| |
| int | GfParmWriteFile (const char *file, void *handle, const char *name) |
| | Write parameter set into file. More...
|
| |
| int | GfParmCreateDirectory (const char *file, void *parmHandle) |
| | Create directory for parameter set handle if it does not yet exist. More...
|
| |
| char * | GfParmGetName (void *handle) |
| | Get the name property of the parameter set handle. More...
|
| |
| char * | GfParmGetFileName (void *handle) |
| | Get the filename property of the parameter set handle. More...
|
| |
| void | GfParmSetDTD (void *parmHandle, char *dtd, char *header) |
| | Set the dtd path and header. More...
|
| |
| const char * | GfParmGetStr (void *handle, const char *path, const char *key, const char *deflt) |
| | Get a string parameter from the parameter set handle. More...
|
| |
| const char * | GfParmGetCurStr (void *handle, const char *path, const char *key, const char *deflt) |
| | Get a string parameter from the parameter set handle based on subsection iteration. More...
|
| |
| int | GfParmSetStr (void *handle, const char *path, const char *key, const char *val) |
| | Set a string parameter in the parameter set handle. More...
|
| |
| int | GfParmSetCurStr (void *handle, const char *path, const char *key, const char *val) |
| | Set a string parameter in the parameter set handle based on subsection iteration. More...
|
| |
| tdble | GfParmGetNum (void *handle, const char *path, const char *key, const char *unit, tdble deflt) |
| | Get a numerical parameter from the parameter set handle. More...
|
| |
| tdble | GfParmGetCurNum (void *handle, const char *path, const char *key, const char *unit, tdble deflt) |
| | Get a numerical parameter from the parameter set handle based on subsection iteration. More...
|
| |
| int | GfParmSetNum (void *handle, const char *path, const char *key, const char *unit, tdble val) |
| | Set a numerical parameter in the parameter set handle. More...
|
| |
| int | GfParmSetNumEx (void *handle, const char *path, const char *key, const char *unit, tdble val, tdble min, tdble max) |
| | Set a numerical parameter in the parameter set handle including min and max. More...
|
| |
| int | GfParmSetCurNum (void *handle, const char *path, const char *key, const char *unit, tdble val) |
| | Set a numerical parameter in the parameter set handle based on subsection iteration. More...
|
| |
| void | GfParmClean (void *handle) |
| | Clean all the parameters of a parameter set. More...
|
| |
| void | GfParmReleaseHandle (void *handle) |
| | Release given parameter set handle parmHandle. More...
|
| |
| tdble | GfParmUnit2SI (const char *unit, tdble val) |
| | Convert a value given in unit to SI. More...
|
| |
| tdble | GfParmSI2Unit (const char *unit, tdble val) |
| | Convert a value from SI to given unit. More...
|
| |
| int | GfParmCheckHandle (void *ref, void *tgt) |
| | Check the values in the parameter set tgt against the min/max/within definitions in the ref parameter set. More...
|
| |
| void * | GfParmMergeHandles (void *ref, void *tgt, int mode) |
| | Merge two parameter sets into a new one, either containing parameters from ref, tgt or from both sets, the ref and tgt sets are not changed. More...
|
| |
| int | GfParmGetNumBoundaries (void *handle, const char *path, const char *key, tdble *min, tdble *max) |
| | Get the min and max of a numerical parameter from the parameter set handle. More...
|
| |
| int | GfParmGetEltNb (void *handle, const char *path) |
| | Count the number of subsections in a section in the parameter set handle. More...
|
| |
| int | GfParmListSeekFirst (void *handle, const char *path) |
| | Go the the first subsection element in the parameter set handle. More...
|
| |
| int | GfParmListSeekNext (void *handle, const char *path) |
| | Go the the next subsection element in the parameter set handle. More...
|
| |
| char * | GfParmListGetCurEltName (void *handle, const char *path) |
| | Get current subsection name of the parameter set handle during subsection iteration. More...
|
| |
| int | GfParmListClean (void *handle, const char *path) |
| | Remove all the subsections in a section in the parameter set handle. More...
|
| |
| static void | GfFatal (const char *fmt,...) |
| |
| double | GfTimeClock (void) |
| | Get the time in seconds. More...
|
| |
| tdble | gfMean (tdble v, tMeanVal *pvt, int n, int w) |
| |
| void | gfMeanReset (tdble v, tMeanVal *pvt) |
| |
| 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...
|
| |
| void * | GfHashCreate (int type) |
| | Create a new hash table. More...
|
| |
| int | GfHashAddStr (void *hash, const char *key, const void *data) |
| | Add an element with a string key to a hash table. More...
|
| |
| const void * | GfHashRemStr (void *hash, char *key) |
| | Remove an element with a string key from a hash table. More...
|
| |
| const void * | GfHashGetStr (void *hash, const char *key) |
| | Get the user data associated with a string key. More...
|
| |
| void | GfHashAddBuf (void *hash, char *key, size_t sz, void *data) |
| | Add an element with a memory buffer key to a hash table. More...
|
| |
| const void * | GfHashRemBuf (void *hash, char *key, size_t sz) |
| | Remove an element with a memory buffer key from a hash table. More...
|
| |
| const void * | GfHashGetBuf (void *hash, char *key, size_t sz) |
| | Get the user data associated with a memory buffer key. More...
|
| |
| void | GfHashRelease (void *hash, tfHashFree hashFree) |
| | Release a hash table. More...
|
| |
| const void * | GfHashGetFirst (void *hash) |
| | Get the first user data of a hash table, this is used for table scans. More...
|
| |
| const void * | GfHashGetNext (void *hash) |
| | Get the next user data of a hash table, this is used for table scans. More...
|
| |
The Gaming Framework API.
- Author
- Bernhard Wymann, Eric Espie
- Version
- $Id$
Definition in file tgf.h.