#include <cstdlib>
#include <glut.h>
#include <cstdio>
#include <cstring>
#include <string>
#include <vector>
#define CHAR_WIDTH_HASH_SIZE 128 |
Size of the character width hash table for faster lookups. Make sure to keep this a power of two to avoid the slow divide. This is also a speed/memory tradeoff; 128 is enough for low ASCII.
#define GLUI_ACTIVATE_MOUSE 1 |
#define GLUI_ACTIVATE_TAB 2 |
#define GLUI_ALIGN_CENTER 1 |
#define GLUI_ALIGN_LEFT 3 |
#define GLUI_ALIGN_RIGHT 2 |
#define GLUI_BUTTON_SIZE 20 |
#define GLUI_CHECKBOX_SIZE 13 |
#define GLUI_CONTROL_ACTIVE_MOUSEDOWN 1 |
#define GLUI_CONTROL_ACTIVE_PERMANENT 2 |
#define GLUI_DEF_MAX_ARRAY 30 |
Max # of els in control's float_array
#define GLUI_DEFAULT_CONTROL_HEIGHT 13 |
#define GLUI_DEFAULT_CONTROL_WIDTH 100 |
#define GLUI_DOUBLE_CLICK 1 |
#define GLUI_EDITTEXT_BOXINNERMARGINX 3 |
#define GLUI_EDITTEXT_FLOAT 3 |
#define GLUI_EDITTEXT_HEIGHT 20 |
#define GLUI_EDITTEXT_INT 2 |
#define GLUI_EDITTEXT_MIN_INT_WIDTH 35 |
#define GLUI_EDITTEXT_MIN_TEXT_WIDTH 50 |
#define GLUI_EDITTEXT_STRING 4 |
#define GLUI_EDITTEXT_TEXT 1 |
#define GLUI_EDITTEXT_WIDTH 130 |
#define GLUI_ITEMSPACING 3 |
#define GLUI_LIMIT_CLAMP 1 |
#define GLUI_LIMIT_NONE 0 |
#define GLUI_LIMIT_WRAP 2 |
#define GLUI_LIST_BOXINNERMARGINX 3 |
#define GLUI_LIST_HEIGHT 130 |
#define GLUI_LIST_MIN_TEXT_WIDTH 50 |
#define GLUI_LIST_WIDTH 130 |
#define GLUI_LIVE_DOUBLE 4 |
#define GLUI_LIVE_FLOAT 2 |
#define GLUI_LIVE_FLOAT_ARRAY 5 |
#define GLUI_LIVE_INT 1 |
#define GLUI_LIVE_NONE 0 |
#define GLUI_LIVE_STRING 6 |
#define GLUI_LIVE_TEXT 3 |
#define GLUI_MOUSE_INTERACTION_HEIGHT (GLUI_MOUSE_INTERACTION_WIDTH)+18 |
#define GLUI_MOUSE_INTERACTION_WIDTH 50 |
#define GLUI_PANEL_EMBOSS_TOP 4 |
#define GLUI_PANEL_EMBOSSED 1 |
#define GLUI_PANEL_NAME_DROP 8 |
#define GLUI_PANEL_NONE 0 |
Different panel control types
#define GLUI_PANEL_RAISED 2 |
#define GLUI_RADIOBUTTON_SIZE 13 |
#define GLUI_ROTATION_HEIGHT (GLUI_ROTATION_WIDTH+18) |
#define GLUI_ROTATION_WIDTH 50 |
#define GLUI_SCROLL_ARROW_HEIGHT 16 |
#define GLUI_SCROLL_ARROW_WIDTH 16 |
#define GLUI_SCROLL_BOX_MIN_HEIGHT 5 |
#define GLUI_SCROLL_BOX_STD_HEIGHT 16 |
#define GLUI_SCROLL_DEFAULT_GROWTH_EXP 1.05f |
#define GLUI_SCROLL_FLOAT GLUI_EDITTEXT_FLOAT |
#define GLUI_SCROLL_HORIZONTAL 1 |
#define GLUI_SCROLL_INT GLUI_EDITTEXT_INT |
#define GLUI_SCROLL_STATE_BOTH 3 |
#define GLUI_SCROLL_STATE_DOWN 2 |
#define GLUI_SCROLL_STATE_NONE 0 |
#define GLUI_SCROLL_STATE_SCROLL 4 |
#define GLUI_SCROLL_STATE_UP 1 |
#define GLUI_SCROLL_VERTICAL 0 |
#define GLUI_SEPARATOR_HEIGHT 8 |
#define GLUI_SINGLE_CLICK 0 |
#define GLUI_SPINNER_ARROW_HEIGHT 8 |
#define GLUI_SPINNER_ARROW_WIDTH 12 |
#define GLUI_SPINNER_ARROW_Y 2 |
#define GLUI_SPINNER_DEFAULT_GROWTH_EXP 1.05f |
#define GLUI_SPINNER_FLOAT GLUI_EDITTEXT_FLOAT |
#define GLUI_SPINNER_INT GLUI_EDITTEXT_INT |
#define GLUI_SPINNER_STATE_BOTH 3 |
#define GLUI_SPINNER_STATE_DOWN 2 |
#define GLUI_SPINNER_STATE_NONE 0 |
#define GLUI_SPINNER_STATE_UP 1 |
#define GLUI_STATICTEXT_SIZE 13 |
#define GLUI_SUBWINDOW ((long)(1<<1)) |
#define GLUI_SUBWINDOW_BOTTOM ((long)(1<<3)) |
#define GLUI_SUBWINDOW_LEFT ((long)(1<<4)) |
#define GLUI_SUBWINDOW_RIGHT ((long)(1<<5)) |
#define GLUI_SUBWINDOW_TOP ((long)(1<<2)) |
#define GLUI_TAB_WIDTH 50 |
#define GLUI_TEXTBOX_BOXINNERMARGINX 3 |
#define GLUI_TEXTBOX_HEIGHT 130 |
#define GLUI_TEXTBOX_MIN_TEXT_WIDTH 50 |
#define GLUI_TEXTBOX_WIDTH 130 |
#define GLUI_TRANSLATION_LOCK_NONE 0 |
#define GLUI_TRANSLATION_LOCK_X 1 |
#define GLUI_TRANSLATION_LOCK_Y 2 |
#define GLUI_TRANSLATION_X 2 |
#define GLUI_TRANSLATION_XY 0 |
#define GLUI_TRANSLATION_Y 3 |
#define GLUI_TRANSLATION_Z 1 |
#define GLUI_TREEPANEL_ALTERNATE_COLOR 1 |
#define GLUI_TREEPANEL_CONNECT_CHILDREN_ONLY 16 |
#define GLUI_TREEPANEL_DEFAULTS 0 |
#define GLUI_TREEPANEL_DISABLE_BAR 4 |
#define GLUI_TREEPANEL_DISABLE_DEEPEST_BAR 8 |
#define GLUI_TREEPANEL_DISPLAY_HIERARCHY 32 |
#define GLUI_TREEPANEL_ENABLE_BAR 2 |
#define GLUI_TREEPANEL_HIERARCHY_LEVEL_ONLY 128 |
#define GLUI_TREEPANEL_HIERARCHY_NUMERICDOT 64 |
#define GLUI_VERSION 2.36f |
#define GLUI_XOFF 6 |
#define GLUI_YOFF 6 |
#define GLUIAPI |
typedef void(* GLUI_Control_CB)(GLUI_Control *) |
typedef std::string GLUI_String |
typedef void(* GLUI_Update_CB)(int id) |
typedef void(* Int1_CB)(int) |
typedef void(* Int2_CB)(int, int) |
typedef void(* Int3_CB)(int, int, int) |
typedef void(* Int4_CB)(int, int, int, int) |
enum GLUI_Glut_CB_Types |
enum TranslationCodes |
void _glutBitmapString | ( | void * | font, | |
const char * | s | |||
) |
int _glutBitmapWidthString | ( | void * | font, | |
const char * | s | |||
) |
void glui_display_func | ( | void | ) |
void glui_entry_func | ( | int | state | ) |
GLUIAPI GLUI_String& glui_format_str | ( | GLUI_String & | str, | |
const char * | fmt, | |||
... | ||||
) |
void glui_idle_func | ( | void | ) |
void glui_keyboard_func | ( | unsigned char | key, | |
int | x, | |||
int | y | |||
) |
void glui_motion_func | ( | int | x, | |
int | y | |||
) |
void glui_mouse_func | ( | int | button, | |
int | state, | |||
int | x, | |||
int | y | |||
) |
void glui_parent_window_keyboard_func | ( | unsigned char | key, | |
int | x, | |||
int | y | |||
) |
void glui_parent_window_mouse_func | ( | int | , | |
int | , | |||
int | , | |||
int | ||||
) |
void glui_parent_window_reshape_func | ( | int | w, | |
int | h | |||
) |
void glui_parent_window_special_func | ( | int | key, | |
int | x, | |||
int | y | |||
) |
void glui_passive_motion_func | ( | int | x, | |
int | y | |||
) |
void glui_reshape_func | ( | int | w, | |
int | h | |||
) |
void glui_special_func | ( | int | key, | |
int | x, | |||
int | y | |||
) |
void glui_visibility_func | ( | int | state | ) |
GLUIAPI GLUI_Master_Object GLUI_Master |
This is the only GLUI_Master_Object in existence.