|
| #define | MAX(x, y) |
| #define | MIN(x, y) |
| #define | FREEZ(x) |
| #define | freez FREEZ |
| #define | RADS2RPM(x) |
| | Radian/s to RPM conversion.
|
| #define | RPM2RADS(x) |
| | RPM to Radian/s conversion.
|
| #define | RAD2DEG(x) |
| | Radian to degree conversion.
|
| #define | DEG2RAD(x) |
| | Degree to radian conversion.
|
| #define | FEET2M(x) |
| | Feet to meter conversion.
|
| #define | SIGN(x) |
| | Sign of the expression.
|
| #define | NORM0_2PI(x) |
| | Angle normalization between 0 and 2 * PI.
|
| #define | NORM_PI_PI(x) |
| | Angle normalization between -PI and PI.
|
| #define | DIST(x1, y1, x2, y2) |
| | Distance between two points.
|
| #define | MAX_MOD_ITF 10 |
| | Maximum number of interface in one DLL.
|
| #define | GFPARM_PARAMETER 0 |
| | Parameter file.
|
| #define | GFPARM_TEMPLATE 1 |
| | Template file.
|
| #define | GFPARM_PARAM_STR "param" |
| #define | GFPARM_TEMPL_STR "template" |
| #define | GFPARM_MODIFIABLE 1 |
| | Parameter file allowed to be modified.
|
| #define | GFPARM_WRITABLE 2 |
| | Parameter file allowed to be saved on disk.
|
| #define | GFPARM_RMODE_STD 0x01 |
| | Return a new handle sharing cached data for this filename, if available.
|
| #define | GFPARM_RMODE_REREAD 0x02 |
| | Clear shared cached data and reread the file.
|
| #define | GFPARM_RMODE_CREAT 0x04 |
| | Allow an empty in-memory set on file-open failure; does not write a file.
|
| #define | GFPARM_RMODE_PRIVATE 0x08 |
| | Private means the handle is not shared/cached.
|
| #define | GFPARM_MMODE_SRC 1 |
| | Include ref attributes; merge common attributes using ref restrictions and tgt values.
|
| #define | GFPARM_MMODE_DST 2 |
| | Include tgt attributes; merge common attributes using ref restrictions and tgt values.
|
| #define | GFPARM_MMODE_RELSRC 4 |
| | release ref after the merge
|
| #define | GFPARM_MMODE_RELDST 8 |
| | release tgt after the merge
|
| #define | GfTrace printf |
| #define | GfError printf |
| #define | GfOut printf |
| #define | GF_MEAN_MAX_VAL 5 |
| #define | GF_TAILQ_HEAD(name, type) |
| | Head type definition.
|
| #define | GF_TAILQ_ENTRY(type) |
| | Entry in structure.
|
| #define | GF_TAILQ_FIRST(head) |
| | First element of a TAILQ.
|
| #define | GF_TAILQ_NEXT(elm, field) |
| | Next element of a TAILQ.
|
| #define | GF_TAILQ_END(head) |
| | End of a TAILQ.
|
| #define | GF_TAILQ_LAST(head, headname) |
| | Last element of a TAILQ.
|
| #define | GF_TAILQ_PREV(elm, headname, field) |
| | Previous element of a TAILQ.
|
| #define | GF_TAILQ_INIT(head) |
| | Head initialization (Mandatory)
|
| #define | GF_TAILQ_INIT_ENTRY(elm, field) |
| | Entry initialization (optionnal if inserted)
|
| #define | GF_TAILQ_INSERT_HEAD(head, elm, field) |
| | Insert an element at the head.
|
| #define | GF_TAILQ_INSERT_TAIL(head, elm, field) |
| | Insert an element at the tail.
|
| #define | GF_TAILQ_INSERT_AFTER(head, listelm, elm, field) |
| | Insert an element after another element.
|
| #define | GF_TAILQ_INSERT_BEFORE(listelm, elm, field) |
| | Insert an element before another element.
|
| #define | GF_TAILQ_REMOVE(head, elm, field) |
| | Remove an element.
|
| #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.
|
| #define | GF_HASH_TYPE_BUF 1 |
| | Memory buffer key based hash table.
|
| #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.
|
| int | GfModLoadDir (unsigned int gfid, char *dir, tModList **modlist) |
| | Load the DLLs in the specified directory.
|
| int | GfModUnloadList (tModList **modlist) |
| | Unload the DLLs of a list.
|
| int | GfModInfo (unsigned int gfid, char *filename, tModList **modlist) |
| | Get the generic information of the specified DLL.
|
| int | GfModInfoDir (unsigned int gfid, char *dir, int level, tModList **modlist) |
| | Get the generic module information of the DLLs of the specified directory.
|
| int | GfModFreeInfoList (tModList **modlist) |
| | Free the info contained in the specified list.
|
| tFList * | GfDirGetList (const char *dir) |
| | Get the list of files of a given directory.
|
| tFList * | GfDirGetListFiltered (const char *dir, const char *suffix) |
| | Get the list of files with matching suffix of a given directory.
|
| void | GfDirFreeList (tFList *list, tfDirfreeUserData freeUserDatabool, bool freename=false, bool freedispname=false) |
| | Free a directory list.
|
| void * | GfParmReadFile (const char *file, int mode) |
| | Read parameter set from file and return handle to parameter set.
|
| int | GfParmWriteFile (const char *file, void *handle, const char *name) |
| | Write parameter set into file.
|
| int | GfParmCreateDirectory (const char *file, void *parmHandle) |
| | Create directory for parameter set handle if it does not yet exist.
|
| char * | GfParmGetName (void *handle) |
| | Get the name property of the parameter set handle.
|
| char * | GfParmGetFileName (void *handle) |
| | Get the filename property of the parameter set handle.
|
| void | GfParmSetDTD (void *parmHandle, char *dtd, char *header) |
| | Set the dtd path and header.
|
| const char * | GfParmGetStr (void *handle, const char *path, const char *key, const char *deflt) |
| | Get a string parameter from the parameter set handle.
|
| 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.
|
| int | GfParmSetStr (void *handle, const char *path, const char *key, const char *val) |
| | Set a string parameter in the parameter set handle.
|
| 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.
|
| tdble | GfParmGetNum (void *handle, const char *path, const char *key, const char *unit, tdble deflt) |
| | Get a numerical parameter from the parameter set handle.
|
| 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.
|
| int | GfParmSetNum (void *handle, const char *path, const char *key, const char *unit, tdble val) |
| | Set a numerical parameter in the parameter set handle.
|
| int | GfParmSetNumEx (void *handle, const char *path, const char *key, const char *unit, tdble val, tdble min, tdble max) |
| | Set a numerical parameter and its bounds, creating it if necessary.
|
| 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.
|
| void | GfParmClean (void *handle) |
| | Clean all the parameters of a parameter set.
|
| void | GfParmReleaseHandle (void *handle) |
| | Release given parameter set handle parmHandle.
|
| tdble | GfParmUnit2SI (const char *unit, tdble val) |
| | Convert a value given in unit to SI.
|
| tdble | GfParmSI2Unit (const char *unit, tdble val) |
| | Convert a value from SI to given unit.
|
| 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.
|
| void * | GfParmMergeHandles (void *ref, void *tgt, int mode) |
| | Merge two parameter sets into a new private set.
|
| 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.
|
| int | GfParmGetEltNb (void *handle, const char *path) |
| | Count the number of subsections in a section in the parameter set handle.
|
| int | GfParmListSeekFirst (void *handle, const char *path) |
| | Select the first immediate subsection of a section.
|
| int | GfParmListSeekNext (void *handle, const char *path) |
| | Advance to the next immediate subsection.
|
| char * | GfParmListGetCurEltName (void *handle, const char *path) |
| | Get current subsection name of the parameter set handle during subsection iteration.
|
| int | GfParmListClean (void *handle, const char *path) |
| | Remove all the subsections in a section in the parameter set handle.
|
| static void | GfFatal (const char *fmt,...) |
| double | GfTimeClock (void) |
| | Get the time in seconds.
|
| 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.
|
| int | GfCreateDirForFile (const char *filenameandpath) |
| | Create directory for given file path recursively, so all missing parent directories are created as well.
|
| void * | GfHashCreate (int type) |
| | Create a new hash table.
|
| int | GfHashAddStr (void *hash, const char *key, const void *data) |
| | Add an element with a string key to a hash table.
|
| const void * | GfHashRemStr (void *hash, char *key) |
| | Remove an element with a string key from a hash table.
|
| const void * | GfHashGetStr (void *hash, const char *key) |
| | Get the user data associated with a string key.
|
| void | GfHashAddBuf (void *hash, char *key, size_t sz, void *data) |
| | Add an element with a memory buffer key to a hash table.
|
| const void * | GfHashRemBuf (void *hash, char *key, size_t sz) |
| | Remove an element with a memory buffer key from a hash table.
|
| const void * | GfHashGetBuf (void *hash, char *key, size_t sz) |
| | Get the user data associated with a memory buffer key.
|
| void | GfHashRelease (void *hash, tfHashFree hashFree) |
| | Release a hash table.
|
| const void * | GfHashGetFirst (void *hash) |
| | Get the first user data of a hash table, this is used for table scans.
|
| const void * | GfHashGetNext (void *hash) |
| | Get the next user data of a hash table, this is used for table scans.
|
The Gaming Framework API.
- Author
- Bernhard Wymann, Eric Espie
Definition in file tgf.h.