MRPT
1.9.9
|
#include <GL/gl.h>
#include <GL/glu.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <GL/glx.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
Go to the source code of this file.
Classes | |
struct | tagSFG_List |
struct | tagSFG_Node |
struct | tagSFG_XYUse |
struct | tagSFG_Time |
struct | tagSFG_State |
struct | tagSFG_Display |
struct | tagSFG_Timer |
struct | tagSFG_Context |
struct | tagSFG_WindowState |
struct | tagSFG_MenuContext |
struct | tagSFG_Menu |
struct | tagSFG_MenuEntry |
struct | tagSFG_Window |
struct | tagSFG_WindowList |
struct | tagSFG_Structure |
struct | tagSFG_Enumerator |
struct | tagSFG_Font |
struct | tagSFG_StrokeVertex |
struct | tagSFG_StrokeStrip |
struct | tagSFG_StrokeChar |
struct | tagSFG_StrokeFont |
Macros | |
#define | VERSION_MAJOR 2 |
#define | VERSION_MINOR 4 |
#define | VERSION_PATCH 0 |
#define | TARGET_HOST_UNIX_X11 1 |
#define | TARGET_HOST_WIN32 0 |
#define | TARGET_HOST_WINCE 0 |
#define | FREEGLUT_MAX_MENUS 3 |
#define | M_PI 3.14159265358979323846 |
#define | TRUE 1 |
#define | FALSE 0 |
#define | SET_WCB(window, cbname, func) |
#define | FETCH_WCB(window, cbname) ((window).CallBacks[CB_##cbname]) |
#define | INVOKE_WCB(window, cbname, arg_list) |
#define | FREEGLUT_EXIT_IF_NOT_INITIALISED(string) |
#define | FREEGLUT_INTERNAL_ERROR_EXIT_IF_NOT_INITIALISED(string) |
#define | FREEGLUT_INTERNAL_ERROR_EXIT(cond, string, function) |
#define | freeglut_return_if_fail(expr) if (!(expr)) return; |
#define | freeglut_return_val_if_fail(expr, val) if (!(expr)) return val; |
#define | FREEGLUT_EXIT_IF_NO_WINDOW(string) |
Typedefs | |
typedef void(* | FGCBDisplay) (void) |
typedef void(* | FGCBReshape) (int, int) |
typedef void(* | FGCBVisibility) (int) |
typedef void(* | FGCBKeyboard) (unsigned char, int, int) |
typedef void(* | FGCBSpecial) (int, int, int) |
typedef void(* | FGCBMouse) (int, int, int, int) |
typedef void(* | FGCBMouseWheel) (int, int, int, int) |
typedef void(* | FGCBMotion) (int, int) |
typedef void(* | FGCBPassive) (int, int) |
typedef void(* | FGCBEntry) (int) |
typedef void(* | FGCBWindowStatus) (int) |
typedef void(* | FGCBSelect) (int, int, int) |
typedef void(* | FGCBJoystick) (unsigned int, int, int, int) |
typedef void(* | FGCBKeyboardUp) (unsigned char, int, int) |
typedef void(* | FGCBSpecialUp) (int, int, int) |
typedef void(* | FGCBOverlayDisplay) (void) |
typedef void(* | FGCBSpaceMotion) (int, int, int) |
typedef void(* | FGCBSpaceRotation) (int, int, int) |
typedef void(* | FGCBSpaceButton) (int, int) |
typedef void(* | FGCBDials) (int, int) |
typedef void(* | FGCBButtonBox) (int, int) |
typedef void(* | FGCBTabletMotion) (int, int) |
typedef void(* | FGCBTabletButton) (int, int, int, int) |
typedef void(* | FGCBDestroy) (void) |
typedef void(* | FGCBIdle) (void) |
typedef void(* | FGCBTimer) (int) |
typedef void(* | FGCBMenuState) (int) |
typedef void(* | FGCBMenuStatus) (int, int, int) |
typedef void(* | FGCBMenu) (int) |
typedef struct tagSFG_List | SFG_List |
typedef struct tagSFG_Node | SFG_Node |
typedef struct tagSFG_XYUse | SFG_XYUse |
typedef struct tagSFG_Time | SFG_Time |
typedef struct tagSFG_State | SFG_State |
typedef struct tagSFG_Display | SFG_Display |
typedef struct tagSFG_Timer | SFG_Timer |
typedef Window | SFG_WindowHandleType |
typedef GLXContext | SFG_WindowContextType |
typedef struct tagSFG_Context | SFG_Context |
typedef struct tagSFG_WindowState | SFG_WindowState |
typedef void(* | SFG_Proc) () |
typedef struct tagSFG_MenuContext | SFG_MenuContext |
typedef struct tagSFG_Window | SFG_Window |
typedef struct tagSFG_MenuEntry | SFG_MenuEntry |
typedef struct tagSFG_Menu | SFG_Menu |
typedef struct tagSFG_WindowList | SFG_WindowList |
typedef struct tagSFG_Structure | SFG_Structure |
typedef struct tagSFG_Enumerator | SFG_Enumerator |
typedef void(* | FGCBenumerator) (SFG_Window *, SFG_Enumerator *) |
typedef struct tagSFG_Font | SFG_Font |
typedef struct tagSFG_StrokeVertex | SFG_StrokeVertex |
typedef struct tagSFG_StrokeStrip | SFG_StrokeStrip |
typedef struct tagSFG_StrokeChar | SFG_StrokeChar |
typedef struct tagSFG_StrokeFont | SFG_StrokeFont |
Variables | |
SFG_Display | fgDisplay |
SFG_Structure | fgStructure |
SFG_State | fgState |
#define FALSE 0 |
Definition at line 97 of file freeglut_internal.h.
#define FETCH_WCB | ( | window, | |
cbname | |||
) | ((window).CallBacks[CB_##cbname]) |
Definition at line 383 of file freeglut_internal.h.
#define FREEGLUT_EXIT_IF_NO_WINDOW | ( | string | ) |
Definition at line 687 of file freeglut_internal.h.
#define FREEGLUT_EXIT_IF_NOT_INITIALISED | ( | string | ) |
Definition at line 648 of file freeglut_internal.h.
#define FREEGLUT_INTERNAL_ERROR_EXIT | ( | cond, | |
string, | |||
function | |||
) |
Definition at line 666 of file freeglut_internal.h.
#define FREEGLUT_INTERNAL_ERROR_EXIT_IF_NOT_INITIALISED | ( | string | ) |
Definition at line 657 of file freeglut_internal.h.
#define FREEGLUT_MAX_MENUS 3 |
Definition at line 36 of file freeglut_internal.h.
#define freeglut_return_if_fail | ( | expr | ) | if (!(expr)) return; |
Definition at line 678 of file freeglut_internal.h.
Definition at line 680 of file freeglut_internal.h.
#define INVOKE_WCB | ( | window, | |
cbname, | |||
arg_list | |||
) |
Definition at line 416 of file freeglut_internal.h.
#define M_PI 3.14159265358979323846 |
Definition at line 89 of file freeglut_internal.h.
#define SET_WCB | ( | window, | |
cbname, | |||
func | |||
) |
Definition at line 365 of file freeglut_internal.h.
#define TARGET_HOST_UNIX_X11 1 |
Definition at line 31 of file freeglut_internal.h.
#define TARGET_HOST_WIN32 0 |
Definition at line 32 of file freeglut_internal.h.
#define TARGET_HOST_WINCE 0 |
Definition at line 33 of file freeglut_internal.h.
#define TRUE 1 |
Definition at line 93 of file freeglut_internal.h.
#define VERSION_MAJOR 2 |
Definition at line 17 of file freeglut_internal.h.
#define VERSION_MINOR 4 |
Definition at line 18 of file freeglut_internal.h.
#define VERSION_PATCH 0 |
Definition at line 19 of file freeglut_internal.h.
typedef void(* FGCBButtonBox) (int, int) |
Definition at line 123 of file freeglut_internal.h.
Definition at line 126 of file freeglut_internal.h.
typedef void(* FGCBDials) (int, int) |
Definition at line 122 of file freeglut_internal.h.
Definition at line 103 of file freeglut_internal.h.
typedef void(* FGCBEntry) (int) |
Definition at line 112 of file freeglut_internal.h.
typedef void(* FGCBenumerator) (SFG_Window *, SFG_Enumerator *) |
Definition at line 585 of file freeglut_internal.h.
Definition at line 129 of file freeglut_internal.h.
typedef void(* FGCBJoystick) (unsigned int, int, int, int) |
Definition at line 115 of file freeglut_internal.h.
typedef void(* FGCBKeyboard) (unsigned char, int, int) |
Definition at line 106 of file freeglut_internal.h.
typedef void(* FGCBKeyboardUp) (unsigned char, int, int) |
Definition at line 116 of file freeglut_internal.h.
typedef void(* FGCBMenu) (int) |
Definition at line 135 of file freeglut_internal.h.
typedef void(* FGCBMenuState) (int) |
Definition at line 131 of file freeglut_internal.h.
typedef void(* FGCBMenuStatus) (int, int, int) |
Definition at line 132 of file freeglut_internal.h.
typedef void(* FGCBMotion) (int, int) |
Definition at line 110 of file freeglut_internal.h.
typedef void(* FGCBMouse) (int, int, int, int) |
Definition at line 108 of file freeglut_internal.h.
typedef void(* FGCBMouseWheel) (int, int, int, int) |
Definition at line 109 of file freeglut_internal.h.
Definition at line 118 of file freeglut_internal.h.
typedef void(* FGCBPassive) (int, int) |
Definition at line 111 of file freeglut_internal.h.
typedef void(* FGCBReshape) (int, int) |
Definition at line 104 of file freeglut_internal.h.
typedef void(* FGCBSelect) (int, int, int) |
Definition at line 114 of file freeglut_internal.h.
typedef void(* FGCBSpaceButton) (int, int) |
Definition at line 121 of file freeglut_internal.h.
typedef void(* FGCBSpaceMotion) (int, int, int) |
Definition at line 119 of file freeglut_internal.h.
typedef void(* FGCBSpaceRotation) (int, int, int) |
Definition at line 120 of file freeglut_internal.h.
typedef void(* FGCBSpecial) (int, int, int) |
Definition at line 107 of file freeglut_internal.h.
typedef void(* FGCBSpecialUp) (int, int, int) |
Definition at line 117 of file freeglut_internal.h.
typedef void(* FGCBTabletButton) (int, int, int, int) |
Definition at line 125 of file freeglut_internal.h.
typedef void(* FGCBTabletMotion) (int, int) |
Definition at line 124 of file freeglut_internal.h.
typedef void(* FGCBTimer) (int) |
Definition at line 130 of file freeglut_internal.h.
typedef void(* FGCBVisibility) (int) |
Definition at line 105 of file freeglut_internal.h.
typedef void(* FGCBWindowStatus) (int) |
Definition at line 113 of file freeglut_internal.h.
typedef struct tagSFG_Context SFG_Context |
Definition at line 300 of file freeglut_internal.h.
typedef struct tagSFG_Display SFG_Display |
Definition at line 233 of file freeglut_internal.h.
typedef struct tagSFG_Enumerator SFG_Enumerator |
Definition at line 579 of file freeglut_internal.h.
typedef struct tagSFG_Font SFG_Font |
Definition at line 588 of file freeglut_internal.h.
typedef struct tagSFG_List SFG_List |
Definition at line 138 of file freeglut_internal.h.
typedef struct tagSFG_Menu SFG_Menu |
Definition at line 490 of file freeglut_internal.h.
typedef struct tagSFG_MenuContext SFG_MenuContext |
Definition at line 477 of file freeglut_internal.h.
typedef struct tagSFG_MenuEntry SFG_MenuEntry |
Definition at line 489 of file freeglut_internal.h.
typedef struct tagSFG_Node SFG_Node |
Definition at line 146 of file freeglut_internal.h.
typedef void(* SFG_Proc) () |
Definition at line 346 of file freeglut_internal.h.
typedef struct tagSFG_State SFG_State |
Definition at line 185 of file freeglut_internal.h.
typedef struct tagSFG_StrokeChar SFG_StrokeChar |
Definition at line 614 of file freeglut_internal.h.
typedef struct tagSFG_StrokeFont SFG_StrokeFont |
Definition at line 622 of file freeglut_internal.h.
typedef struct tagSFG_StrokeStrip SFG_StrokeStrip |
Definition at line 607 of file freeglut_internal.h.
typedef struct tagSFG_StrokeVertex SFG_StrokeVertex |
Definition at line 601 of file freeglut_internal.h.
typedef struct tagSFG_Structure SFG_Structure |
Definition at line 555 of file freeglut_internal.h.
typedef struct tagSFG_Time SFG_Time |
Definition at line 162 of file freeglut_internal.h.
typedef struct tagSFG_Timer SFG_Timer |
Definition at line 271 of file freeglut_internal.h.
typedef struct tagSFG_Window SFG_Window |
Definition at line 488 of file freeglut_internal.h.
typedef GLXContext SFG_WindowContextType |
Definition at line 287 of file freeglut_internal.h.
typedef Window SFG_WindowHandleType |
Definition at line 286 of file freeglut_internal.h.
typedef struct tagSFG_WindowList SFG_WindowList |
Definition at line 547 of file freeglut_internal.h.
typedef struct tagSFG_WindowState SFG_WindowState |
Definition at line 316 of file freeglut_internal.h.
typedef struct tagSFG_XYUse SFG_XYUse |
Definition at line 154 of file freeglut_internal.h.
anonymous enum |
Definition at line 443 of file freeglut_internal.h.
enum fgExecutionState |
Enumerator | |
---|---|
GLUT_EXEC_STATE_INIT | |
GLUT_EXEC_STATE_RUNNING | |
GLUT_EXEC_STATE_STOP |
Definition at line 177 of file freeglut_internal.h.
void fgAddToWindowDestroyList | ( | SFG_Window * | window | ) |
GLboolean fgCheckActiveMenu | ( | SFG_Window * | window, |
int | button, | ||
GLboolean | pressed, | ||
int | mouse_x, | ||
int | mouse_y | ||
) |
XVisualInfo* fgChooseVisual | ( | void | ) |
void fgCloseWindow | ( | SFG_Window * | window | ) |
void fgCloseWindows | ( | ) |
SFG_Window* fgCreateWindow | ( | SFG_Window * | parent, |
const char * | title, | ||
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
GLboolean | gameMode, | ||
GLboolean | isMenu | ||
) |
void fgDeactivateMenu | ( | SFG_Window * | window | ) |
void fgDestroyWindow | ( | SFG_Window * | window | ) |
long fgElapsedTime | ( | void | ) |
void fgEnumSubWindows | ( | SFG_Window * | window, |
FGCBenumerator | enumCallback, | ||
SFG_Enumerator * | enumerator | ||
) |
void fgEnumWindows | ( | FGCBenumerator | enumCallback, |
SFG_Enumerator * | enumerator | ||
) |
void fgError | ( | const char * | fmt, |
... | |||
) |
int fgJoystickDetect | ( | void | ) |
void fgJoystickPollWindow | ( | SFG_Window * | window | ) |
int fgListLength | ( | SFG_List * | list | ) |
SFG_Menu* fgMenuByID | ( | int | menuID | ) |
void fgOpenWindow | ( | SFG_Window * | window, |
const char * | title, | ||
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
GLboolean | gameMode, | ||
GLboolean | isSubWindow | ||
) |
void fgSetCursor | ( | SFG_Window * | window, |
int | cursorID | ||
) |
void fgSetWindow | ( | SFG_Window * | window | ) |
void fgWarning | ( | const char * | fmt, |
... | |||
) |
SFG_Window* fgWindowByHandle | ( | SFG_WindowHandleType | hWindow | ) |
SFG_Window* fgWindowByID | ( | int | windowID | ) |
int glutJoystickGetNumAxes | ( | int | ident | ) |
int glutJoystickGetNumButtons | ( | int | ident | ) |
int glutJoystickNotWorking | ( | int | ident | ) |
SFG_Display fgDisplay |
SFG_State fgState |
SFG_Structure fgStructure |
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019 |