|
| 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.
|
| int | GfImgWritePng (unsigned char *img, const char *filename, int width, int height) |
| | Write a buffer to a png image on disk.
|
| int | GfImgWritePngNoGamma (unsigned char *img, const char *filename, int width, int height) |
| | Write a framebuffer capture to a png image on disk without gamma metadata.
|
| void | GfImgFreeTex (GLuint tex) |
| | Free the texture.
|
| GLuint | GfImgReadTex (char *filename) |
| | Read a png image into a texture.
|
| void | GfScrInit (int argc, char *argv[]) |
| void | GfScrShutdown (void) |
| | Shutdown the screen.
|
| void * | GfScrMenuInit (void *precMenu) |
| | Create and activate the video options menu screen.
|
| void | GfTime2Str (char *result, int resultSize, tdble sec, int sgn) |
| | Convert a time in seconds (float) to an ascii string.
|
| void | GfScrGetSize (int *ScrW, int *ScrH, int *ViewW, int *ViewH) |
| | Get the screen and viewport sizes.
|
| void | GfScrReinit (void *) |
| void | GfuiDisplay (void) |
| | Draw the active GUI screen and swap the GLUT buffers.
|
| void | GfuiDisplayNothing (void) |
| | GLUT display callback that performs no drawing or buffer swap.
|
| void | GfuiIdle (void) |
| | Process held-mouse-button repeat actions on the active screen.
|
| void * | GfuiScreenCreate (void) |
| | Create a new screen.
|
| void * | GfuiScreenCreateExAction (float *bgColor, const tGfuiAction &onActivate, const tGfuiAction &onDeactivate, int mouseAllowed) |
| | Create a screen.
|
| void * | GfuiScreenCreateEx (float *bgColor, void *userDataOnActivate, tfuiCallback onActivate, void *userDataOnDeactivate, tfuiCallback onDeactivate, int mouseAllowed) |
| | Create a screen using callbacks with caller-supplied data.
|
| void | GfuiScreenRelease (void *screen) |
| | Release the given screen.
|
| void | GfuiScreenActivate (void *screen) |
| | Activate a screen and make it current.
|
| int | GfuiScreenIsActive (void *screen) |
| | Tell if the screen is active or not.
|
| void | GfuiScreenReplace (void *screen) |
| | Activate a screen and make it current plus release the current screen.
|
| void | GfuiScreenDeactivate (void) |
| | Deactivate the current screen.
|
| void * | GfuiHookCreateAction (const tGfuiAction &onActivate) |
| | Create a callback hook.
|
| void * | GfuiHookCreate (void *userDataOnActivate, tfuiCallback onActivate) |
| | Create a callback-only screen hook.
|
| void | GfuiHookRelease (void *hook) |
| | Release the given hook.
|
| void | GfuiAddKeyAction (void *scr, unsigned char key, const char *descr, const tGfuiAction &onKeyPressed, const tGfuiAction &onKeyReleased) |
| | Add a Keyboard callback to a screen.
|
| void | GfuiAddKey (void *scr, unsigned char key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased) |
| | Bind an ordinary key on a screen using callbacks with caller-supplied data.
|
| void | GfuiRegisterKeyAction (unsigned char key, char *descr, const tGfuiAction &onKeyPressed, const tGfuiAction &onKeyReleased) |
| | Add a Keyboard callback to the current screen.
|
| void | GfuiRegisterKey (unsigned char key, char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased) |
| | Bind an ordinary key on the currently active screen.
|
| void | GfuiAddSKeyAction (void *scr, int key, const char *descr, const tGfuiAction &onKeyPressed, const tGfuiAction &onKeyReleased) |
| | Add a Special Keyboard shortcut to the screen.
|
| void | GfuiAddSKey (void *scr, int key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased) |
| | Bind a GLUT special key, such as an arrow or function key, on a screen.
|
| void | GfuiHelpScreen (void *prevScreen) |
| | Generate a help screen.
|
| void | GfuiScreenShot (void *notused) |
| | Save a screen shot in png format.
|
| void | GfuiScreenAddBgImg (void *scr, const char *filename) |
| | Add an image background to a screen.
|
| void | GfuiKeyEventRegister (void *scr, tfuiKeyCallback onKeyAction) |
| | Set the ordinary-key event interceptor for a screen.
|
| void | GfuiSKeyEventRegister (void *scr, tfuiSKeyCallback onSKeyAction) |
| | Set the special-key event interceptor for a screen.
|
| void | GfuiKeyEventRegisterCurrent (tfuiKeyCallback onKeyAction) |
| | Set the ordinary-key interceptor on the currently active screen.
|
| void | GfuiSKeyEventRegisterCurrent (tfuiSKeyCallback onSKeyAction) |
| | Set the special-key interceptor on the currently active screen.
|
| tMouseInfo * | GfuiMouseInfo (void) |
| | Get the GUI's current mouse state.
|
| void | GfuiMouseSetPos (int x, int y) |
| | Set the mouse position.
|
| void | GfuiMouseHide (void) |
| | Disallow the software mouse cursor on the active screen.
|
| void | GfuiMouseShow (void) |
| | Allow the software mouse cursor on the active screen.
|
| void | GfuiMouseSetHWPresent (void) |
| | Force the hardware mouse pointer.
|
| int | GfuiVisibilitySet (void *scr, int id, int visible) |
| | Set/unset the visibility attribute of an object.
|
| int | GfuiEnable (void *scr, int id, int flag) |
| | Enable / Disable an object.
|
| void | GfuiUnSelectCurrent (void) |
| | Remove focus from the active screen's current widget.
|
| int | GfuiLabelCreate (void *scr, const char *text, int font, int x, int y, int align, int maxlen) |
| | Add a label to a screen.
|
| 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).
|
| int | GfuiTipCreate (void *scr, const char *text, int maxlen) |
| | Add a Tip (generally associated with a button).
|
| int | GfuiTitleCreate (void *scr, const char *text, int maxlen) |
| | Add a Title to the screen.
|
| void | GfuiLabelSetText (void *scr, int id, const char *text) |
| | Change the text of a label.
|
| void | GfuiLabelSetColor (void *scr, int id, float *color) |
| | Change the color of a label.
|
| void | GfuiPrintString (const char *text, float *fgColor, int font, int x, int y, int align) |
| | Draw text immediately in the current OpenGL context without creating a widget.
|
| int | GfuiFontHeight (int font) |
| | Get the height of an initialized GUI font.
|
| int | GfuiFontWidth (int font, const char *text) |
| | Measure text using an initialized GUI font.
|
| int | GfuiButtonCreateAction (void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, const tGfuiAction &onPush, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost) |
| | Add a button to a screen.
|
| 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) |
| | Create a text button using callbacks with caller-supplied data.
|
| int | GfuiLeanButtonCreateAction (void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, const tGfuiAction &onPush, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost) |
| | Create a text button without horizontal margins.
|
| 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) |
| | Create a marginless text button using callbacks with caller-supplied data.
|
| int | GfuiButtonStateCreateAction (void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, const tGfuiAction &onPush, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost) |
| | Create a text button that toggles between pressed and released while focused.
|
| 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.
|
| int | GfuiGrButtonCreateAction (void *scr, const char *disabled, const char *enabled, const char *focused, const char *pushed, int x, int y, int align, int mouse, const tGfuiAction &onPush, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost) |
| | Add a graphical button to a screen.
|
| 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) |
| | Create an image button using callbacks with caller-supplied data.
|
| void | GfuiButtonSetText (void *scr, int id, const char *text) |
| | Change the label of a button.
|
| int | GfuiButtonGetFocused (void) |
| | Get the Id of the button focused in the current screen.
|
| int | GfuiEditboxCreateAction (void *scr, const char *text, int font, int x, int y, int width, int maxlen, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost, int margin=10) |
| | Add an edit box to a screen.
|
| 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) |
| | Create an edit box using callbacks with caller-supplied data.
|
| int | GfuiEditboxGetFocused (void) |
| | Get the Id of the editbox focused in the current screen.
|
| char * | GfuiEditboxGetString (void *scr, int id) |
| | Get the current text of an edit box.
|
| void | GfuiEditboxSetString (void *scr, int id, const char *text) |
| | Set a new string.
|
| int | GfuiScrollListCreateAction (void *scr, int font, int x, int y, int align, int width, int height, int scrollbar, const tGfuiAction &onSelect) |
| | Create a new scroll list.
|
| int | GfuiScrollListCreate (void *scr, int font, int x, int y, int align, int width, int height, int scrollbar, void *userDataOnSelect, tfuiCallback onSelect) |
| | Create a scrolling list using a callback with caller-supplied data.
|
| int | GfuiScrollListInsertElement (void *scr, int Id, char *element, int index, void *userData) |
| | Insert an element in a scroll list.
|
| int | GfuiScrollListMoveSelectedElement (void *scr, int Id, int delta) |
| | Move the selected element within the scroll list.
|
| char * | GfuiScrollListExtractSelectedElement (void *scr, int Id, void **userData) |
| | Extract the selected element from the scroll list (removed).
|
| char * | GfuiScrollListExtractElement (void *scr, int Id, int index, void **userData) |
| | Extract the specified element from the scroll list.
|
| char * | GfuiScrollListGetSelectedElement (void *scr, int Id, void **userData) |
| | Get the selected element from the scroll list.
|
| char * | GfuiScrollListGetElement (void *scr, int Id, int index, void **userData) |
| | Get the specified element from the scroll list.
|
| 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.
|
| void | GfuiScrollBarPosSet (void *scr, int id, int min, int max, int len, int start) |
| | Set new values for position.
|
| int | GfuiScrollBarPosGet (void *scr, int id) |
| | Get the current position of a scroll bar.
|
| int | GfuiStaticImageCreate (void *scr, int x, int y, int w, int h, char *name) |
| | Create a new static image.
|
| void | GfuiStaticImageSet (void *scr, int id, char *name) |
| | Replace an image by another one.
|
| void * | GfuiMenuScreenCreate (const char *title) |
| | Create a new menu screen.
|
| void | GfuiMenuDefaultKeysAdd (void *scr) |
| | Add the default menu keyboard callback to a screen.
|
| int | GfuiMenuButtonCreateAction (void *menu, const char *text, const char *tip, const tGfuiAction &onpush) |
| | Add a menu button with a focus tip.
|
| int | GfuiMenuButtonCreateActionWithDisabledTip (void *menu, const char *text, const char *tip, const char *disabledTip, const tGfuiAction &onpush) |
| | Add a button to a menu screen.
|
| int | GfuiMenuButtonCreate (void *menu, const char *text, const char *tip, void *userdata, tfuiCallback onpush) |
| | Add a menu button using a callback with caller-supplied data.
|
| int | GfuiMenuBackQuitButtonCreateAction (void *menu, const char *text, const char *tip, const tGfuiAction &onpush) |
| | Add the "Back" or "Quit" button at the bottom of the menu screen.
|
| int | GfuiMenuBackQuitButtonCreate (void *menu, const char *text, const char *tip, void *userdata, tfuiCallback onpush) |
| | Add the bottom Back/Quit menu button using a callback with caller-supplied data.
|
| tCtrlJoyInfo * | GfctrlJoyInit (void) |
| | Initialize the joystick control.
|
| int | GfctrlJoyIsPresent (void) |
| | Check if a joystick is present.
|
| int | GfctrlJoyGetCurrent (tCtrlJoyInfo *joyInfo) |
| | Get the joystick current values.
|
| void | GfctrlJoyRelease (tCtrlJoyInfo *joyInfo) |
| | Release the tCtrlJoyInfo structure.
|
| tCtrlMouseInfo * | GfctrlMouseInit (void) |
| | Initialize the mouse control.
|
| int | GfctrlMouseGetCurrent (tCtrlMouseInfo *mouseInfo) |
| | Get the mouse current values.
|
| void | GfctrlMouseRelease (tCtrlMouseInfo *mouseInfo) |
| | Release the tCtrlMouseInfo structure.
|
| void | GfctrlMouseCenter (void) |
| | Recentre the mouse on the screen.
|
| void | GfctrlMouseInitCenter (void) |
| | Get the reference position.
|
| void | GfctrlGetRefByName (const char *name, tCtrlRef *ref) |
| | Get a control reference by its name.
|
| const char * | GfctrlGetNameByRef (GfCtrlType type, int index) |
| | Get a control name by its reference.
|
| 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).
|
| int | GfuiGlutExtensionSupported (const char *str) |
| | Query an OpenGL extension through GLUT for the current rendering context.
|