|
| void | GfInitClient (void) |
| |
| unsigned char * | GfImgReadPng (const char *filename, int *widthp, int *heightp, float gamma) |
| | Load an image from disk to a buffer in RGBA mode. More...
|
| |
| int | GfImgWritePng (unsigned char *img, const char *filename, int width, int height) |
| | Write a buffer to a png image on disk. More...
|
| |
| void | GfImgFreeTex (GLuint tex) |
| | Free the texture. More...
|
| |
| GLuint | GfImgReadTex (char *filename) |
| | Read a png image into a texture. More...
|
| |
| void | GfScrInit (int argc, char *argv[]) |
| |
| void | GfScrShutdown (void) |
| | Shutdown the screen. More...
|
| |
| void * | GfScrMenuInit (void *precMenu) |
| | Create and activate the video options menu screen. More...
|
| |
| void | GfTime2Str (char *result, int resultSize, tdble sec, int sgn) |
| | Convert a time in seconds (float) to an ascii string. More...
|
| |
| void | GfScrGetSize (int *ScrW, int *ScrH, int *ViewW, int *ViewH) |
| | Get the screen and viewport sizes. More...
|
| |
| void | GfScrReinit (void *) |
| |
| void | GfuiDisplay (void) |
| | Display function for the GUI to be called during redisplay of glut. More...
|
| |
| void | GfuiDisplayNothing (void) |
| | Dummy display function for glut. More...
|
| |
| void | GfuiIdle (void) |
| | Idle function for the GUI to be called during Idle loop of glut. More...
|
| |
| void * | GfuiScreenCreate (void) |
| | Create a new screen. More...
|
| |
| void * | GfuiScreenCreateEx (float *bgColor, void *userDataOnActivate, tfuiCallback onActivate, void *userDataOnDeactivate, tfuiCallback onDeactivate, int mouseAllowed) |
| | Create a screen. More...
|
| |
| void | GfuiScreenRelease (void *screen) |
| | Release the given screen. More...
|
| |
| void | GfuiScreenActivate (void *screen) |
| | Activate a screen and make it current. More...
|
| |
| int | GfuiScreenIsActive (void *screen) |
| | Tell if the screen is active or not. More...
|
| |
| void | GfuiScreenReplace (void *screen) |
| | Activate a screen and make it current plus release the current screen. More...
|
| |
| void | GfuiScreenDeactivate (void) |
| | Deactivate the current screen. More...
|
| |
| void * | GfuiHookCreate (void *userDataOnActivate, tfuiCallback onActivate) |
| | Create a callback hook. More...
|
| |
| void | GfuiHookRelease (void *hook) |
| | Release the given hook. More...
|
| |
| void | GfuiAddKey (void *scr, unsigned char key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased) |
| | Add a Keyboard callback to a screen. More...
|
| |
| void | GfuiRegisterKey (unsigned char key, char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased) |
| | Add a Keyboard callback to the current screen. More...
|
| |
| void | GfuiAddSKey (void *scr, int key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased) |
| | Add a Special Keyboard shortcut to the screen. More...
|
| |
| void | GfuiHelpScreen (void *prevScreen) |
| | Generate a help screen. More...
|
| |
| void | GfuiScreenShot (void *notused) |
| | Save a screen shot in png format. More...
|
| |
| void | GfuiScreenAddBgImg (void *scr, const char *filename) |
| | Add an image background to a screen. More...
|
| |
| void | GfuiKeyEventRegister (void *scr, tfuiKeyCallback onKeyAction) |
| |
| void | GfuiSKeyEventRegister (void *scr, tfuiSKeyCallback onSKeyAction) |
| |
| void | GfuiKeyEventRegisterCurrent (tfuiKeyCallback onKeyAction) |
| |
| void | GfuiSKeyEventRegisterCurrent (tfuiSKeyCallback onSKeyAction) |
| |
| tMouseInfo * | GfuiMouseInfo (void) |
| | Get the mouse information (position and buttons) More...
|
| |
| void | GfuiMouseSetPos (int x, int y) |
| | Set the mouse position. More...
|
| |
| void | GfuiMouseHide (void) |
| | Hide the mouse cursor. More...
|
| |
| void | GfuiMouseShow (void) |
| | Show the mouse cursor. More...
|
| |
| void | GfuiMouseSetHWPresent (void) |
| | Force the hardware mouse pointer. More...
|
| |
| int | GfuiVisibilitySet (void *scr, int id, int visible) |
| | Set/unset the visibility attribute of an object. More...
|
| |
| int | GfuiEnable (void *scr, int id, int flag) |
| | Enable / Disable an object. More...
|
| |
| void | GfuiUnSelectCurrent (void) |
| | Remove the focus on the current element. More...
|
| |
| int | GfuiLabelCreate (void *scr, const char *text, int font, int x, int y, int align, int maxlen) |
| | Add a label to a screen. More...
|
| |
| int | GfuiLabelCreateEx (void *scr, const char *text, float *fgColor, int font, int x, int y, int align, int maxlen) |
| | Create a new label (extended version). More...
|
| |
| int | GfuiTipCreate (void *scr, const char *text, int maxlen) |
| | Add a Tip (generally associated with a button). More...
|
| |
| int | GfuiTitleCreate (void *scr, const char *text, int maxlen) |
| | Add a Title to the screen. More...
|
| |
| void | GfuiLabelSetText (void *scr, int id, const char *text) |
| | Change the text of a label. More...
|
| |
| void | GfuiLabelSetColor (void *scr, int id, float *color) |
| | Change the color of a label. More...
|
| |
| void | GfuiPrintString (const char *text, float *fgColor, int font, int x, int y, int align) |
| |
| int | GfuiFontHeight (int font) |
| |
| int | GfuiFontWidth (int font, const char *text) |
| |
| int | GfuiButtonCreate (void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, void *userDataOnPush, tfuiCallback onPush, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost) |
| | Add a button to a screen. More...
|
| |
| int | GfuiLeanButtonCreate (void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, void *userDataOnPush, tfuiCallback onPush, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost) |
| |
| int | GfuiButtonStateCreate (void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, void *userDataOnPush, tfuiCallback onPush, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost) |
| | Add a state button to a screen. More...
|
| |
| int | GfuiGrButtonCreate (void *scr, const char *disabled, const char *enabled, const char *focused, const char *pushed, int x, int y, int align, int mouse, void *userDataOnPush, tfuiCallback onPush, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost) |
| | Add a graphical button to a screen. More...
|
| |
| void | GfuiButtonSetText (void *scr, int id, const char *text) |
| | Change the label of a button. More...
|
| |
| int | GfuiButtonGetFocused (void) |
| | Get the Id of the button focused in the current screen. More...
|
| |
| int | GfuiEditboxCreate (void *scr, const char *text, int font, int x, int y, int width, int maxlen, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost, int margin=10) |
| | Add a editbox to a screen. More...
|
| |
| int | GfuiEditboxGetFocused (void) |
| | Get the Id of the editbox focused in the current screen. More...
|
| |
| char * | GfuiEditboxGetString (void *scr, int id) |
| | Get the string. More...
|
| |
| void | GfuiEditboxSetString (void *scr, int id, const char *text) |
| | Set a new string. More...
|
| |
| int | GfuiScrollListCreate (void *scr, int font, int x, int y, int align, int width, int height, int scrollbar, void *userDataOnSelect, tfuiCallback onSelect) |
| | Create a new scroll list. More...
|
| |
| int | GfuiScrollListInsertElement (void *scr, int Id, char *element, int index, void *userData) |
| | Insert an element in a scroll list. More...
|
| |
| int | GfuiScrollListMoveSelectedElement (void *scr, int Id, int delta) |
| | Move the selected element within the scroll list. More...
|
| |
| char * | GfuiScrollListExtractSelectedElement (void *scr, int Id, void **userData) |
| | Extract the selected element from the scroll list (removed). More...
|
| |
| char * | GfuiScrollListExtractElement (void *scr, int Id, int index, void **userData) |
| | Extract the specified element from the scroll list. More...
|
| |
| char * | GfuiScrollListGetSelectedElement (void *scr, int Id, void **userData) |
| | Get the selected element from the scroll list. More...
|
| |
| char * | GfuiScrollListGetElement (void *scr, int Id, int index, void **userData) |
| | Get the specified element from the scroll list. More...
|
| |
| int | GfuiScrollBarCreate (void *scr, int x, int y, int align, int width, int orientation, int min, int max, int len, int start, void *userData, tfuiSBCallback onScroll) |
| | Create a new scroll bar. More...
|
| |
| void | GfuiScrollBarPosSet (void *scr, int id, int min, int max, int len, int start) |
| | Set new values for position. More...
|
| |
| int | GfuiScrollBarPosGet (void *scr, int id) |
| | Get the current position of a scroll bar. More...
|
| |
| int | GfuiStaticImageCreate (void *scr, int x, int y, int w, int h, char *name) |
| | Create a new static image. More...
|
| |
| void | GfuiStaticImageSet (void *scr, int id, char *name) |
| | Replace an image by another one. More...
|
| |
| void * | GfuiMenuScreenCreate (const char *title) |
| | Create a new menu screen. More...
|
| |
| void | GfuiMenuDefaultKeysAdd (void *scr) |
| | Add the default menu keyboard callback to a screen. More...
|
| |
| int | GfuiMenuButtonCreate (void *menu, const char *text, const char *tip, void *userdata, tfuiCallback onpush) |
| | Add a button to a menu screen. More...
|
| |
| int | GfuiMenuBackQuitButtonCreate (void *menu, const char *text, const char *tip, void *userdata, tfuiCallback onpush) |
| | Add the "Back" or "Quit" button at the bottom of the menu screen. More...
|
| |
| tCtrlJoyInfo * | GfctrlJoyInit (void) |
| | Initialize the joystick control. More...
|
| |
| int | GfctrlJoyIsPresent (void) |
| | Check if a joystick is present. More...
|
| |
| int | GfctrlJoyGetCurrent (tCtrlJoyInfo *joyInfo) |
| | Get the joystick current values. More...
|
| |
| void | GfctrlJoyRelease (tCtrlJoyInfo *joyInfo) |
| | Release the tCtrlJoyInfo structure. More...
|
| |
| tCtrlMouseInfo * | GfctrlMouseInit (void) |
| | Initialize the mouse control. More...
|
| |
| int | GfctrlMouseGetCurrent (tCtrlMouseInfo *mouseInfo) |
| | Get the mouse current values. More...
|
| |
| void | GfctrlMouseRelease (tCtrlMouseInfo *mouseInfo) |
| | Release the tCtrlMouseInfo structure. More...
|
| |
| void | GfctrlMouseCenter (void) |
| | Recentre the mouse on the screen. More...
|
| |
| void | GfctrlMouseInitCenter (void) |
| | Get the reference position. More...
|
| |
| void | GfctrlGetRefByName (const char *name, tCtrlRef *ref) |
| | Get a control reference by its name. More...
|
| |
| const char * | GfctrlGetNameByRef (GfCtrlType type, int index) |
| | Get a control name by its reference. More...
|
| |
| const char * | GfctrlGetDefaultSection (GfCtrlType type) |
| |
| bool | GfctrlIsEventBlacklisted (void *parmHandle, const char *driversSection, const char *event) |
| | Check if given event is blacklisted (used for buttons or axis which fire a button AND move event). More...
|
| |
| int | GfuiGlutExtensionSupported (const char *str) |
| |