#include <glut_interface.H>
Public Member Functions | |
~glut_interface_t () | |
void | register_graphics (drawing_t *graphics) |
void | init_interface (int argc, char **argv, char const *terrain_model, char const *sky_model, char const *conf_filename) |
void | start_interface () |
void | set_controlKey_index () |
Static Public Member Functions | |
static void | update_data_callback () |
static void | update_data_callback2 () |
static void | update_data_callback3 () |
static void | draw_callback () |
static void | draw_callback_2 () |
static void | draw_callback_3 () |
static void | normalKey_callback (unsigned char key, int x, int y) |
static void | controlKey_callback (int key, int x, int y) |
static void | mousebutton_callback (int button, int state, int x, int y) |
static void | mousemotion_callback (int x, int y) |
static int | get_main_window_id () |
static GLUI * | get_control_panel_glui () |
static int | get_control_panel_position () |
Static Protected Member Functions | |
static void | reshape_callback (int width, int height) |
static void | reshape_callback2 (int width, int height) |
static void | reshape_callback3 (int width, int height) |
Static Protected Attributes | |
static int | m_controlKey_index [] |
static int | m_mouseKey_index [] |
static int | m_mouseState_index [] |
static int | m_modifierKey_index [] |
static int | m_window1_id = -1 |
static int | m_window2_id = -1 |
static int | m_viz_width |
static int | m_viz_height |
static int | m_vision_width |
static int | m_vision_height |
static int | m_control_panel_position |
static bool | m_ctrl_as_sub |
static std::vector< color_node_t > | m_background_color |
static GLUI * | m_control_panel_glui = NULL |
glut_interface_t::~glut_interface_t | ( | ) |
References cajun::graphic_interface_t::m_graphics.
void glut_interface_t::controlKey_callback | ( | int | key, | |
int | x, | |||
int | y | |||
) | [static] |
References cajun::drawing_t::controlKey_callback(), m_controlKey_index, cajun::graphic_interface_t::m_graphics, m_modifierKey_index, and MAX_CONTROLKEY_INDEX.
Referenced by init_interface().
void glut_interface_t::draw_callback | ( | ) | [static] |
void glut_interface_t::draw_callback_2 | ( | ) | [static] |
void glut_interface_t::draw_callback_3 | ( | ) | [static] |
References cajun::drawing_t::draw3(), cajun::graphic_interface_t::m_graphics, and m_window2_id.
Referenced by init_interface().
GLUI * glut_interface_t::get_control_panel_glui | ( | ) | [static] |
References m_control_panel_glui.
Referenced by cajun::control_panel_window_t::setup_glui_controls().
int glut_interface_t::get_control_panel_position | ( | ) | [static] |
References m_control_panel_position.
Referenced by cajun::control_panel_window_t::setup_glui_controls().
int glut_interface_t::get_main_window_id | ( | ) | [static] |
References m_window1_id.
void glut_interface_t::init_interface | ( | int | argc, | |
char ** | argv, | |||
char const * | terrain_model, | |||
char const * | sky_model, | |||
char const * | conf_filename | |||
) | [virtual] |
Implements cajun::graphic_interface_t.
References cajun::drawing_t::check_ctrl_panel_display(), cajun::drawing_t::check_video_display(), controlKey_callback(), draw_callback(), draw_callback_3(), cajun::drawing_t::load_context_data(), cajun::drawing_t::load_terrain_textures(), m_background_color, m_control_panel_glui, m_control_panel_position, m_ctrl_as_sub, cajun::graphic_interface_t::m_graphics, m_vision_height, m_vision_width, m_viz_height, m_viz_width, m_window1_id, m_window2_id, mousebutton_callback(), mousemotion_callback(), normalKey_callback(), reshape_callback(), reshape_callback3(), update_data_callback(), update_data_callback2(), and update_data_callback3().
void glut_interface_t::mousebutton_callback | ( | int | button, | |
int | state, | |||
int | x, | |||
int | y | |||
) | [static] |
References cajun::graphic_interface_t::m_graphics, m_modifierKey_index, m_mouseKey_index, m_mouseState_index, MAX_MOUSEKEY_INDEX, and cajun::drawing_t::mousebutton_callback().
Referenced by init_interface().
void glut_interface_t::mousemotion_callback | ( | int | x, | |
int | y | |||
) | [static] |
References cajun::graphic_interface_t::m_graphics, and cajun::drawing_t::mousemotion_callback().
Referenced by init_interface().
void glut_interface_t::normalKey_callback | ( | unsigned char | key, | |
int | x, | |||
int | y | |||
) | [static] |
References cajun::graphic_interface_t::m_graphics, m_modifierKey_index, and cajun::drawing_t::normalKey_callback().
Referenced by init_interface().
void glut_interface_t::register_graphics | ( | drawing_t * | graphics | ) | [virtual] |
Implements cajun::graphic_interface_t.
References cajun::graphic_interface_t::m_graphics.
void glut_interface_t::reshape_callback | ( | int | width, | |
int | height | |||
) | [static, protected] |
References FAR, FOVY, m_viz_height, m_viz_width, m_window1_id, and NEAR.
Referenced by init_interface().
void glut_interface_t::reshape_callback2 | ( | int | width, | |
int | height | |||
) | [static, protected] |
void glut_interface_t::reshape_callback3 | ( | int | width, | |
int | height | |||
) | [static, protected] |
References m_vision_height, and m_vision_width.
Referenced by init_interface().
void glut_interface_t::set_controlKey_index | ( | ) | [virtual] |
Implements cajun::graphic_interface_t.
References cajun::CBCK_ALT, cajun::CBCK_BACKWARD_ARROW, cajun::CBCK_CTRL, cajun::CBCK_F1, cajun::CBCK_F2, cajun::CBCK_F3, cajun::CBCK_F4, cajun::CBCK_F5, cajun::CBCK_FORWARD_ARROW, cajun::CBCK_LEFT_ARROW, cajun::CBCK_PAGE_DOWN, cajun::CBCK_PAGE_UP, cajun::CBCK_RIGHT_ARROW, cajun::CBCK_SHIFT, cajun::CBMK_BUTTON_PRESS, cajun::CBMK_BUTTON_RELEASE, cajun::CBMK_LEFT_BUTTON, cajun::CBMK_RIGHT_BUTTON, m_controlKey_index, m_modifierKey_index, m_mouseKey_index, m_mouseState_index, MAX_CONTROLKEY_INDEX, MAX_MODIFIERKEY_INDEX, and MAX_MOUSEKEY_INDEX.
void glut_interface_t::start_interface | ( | ) | [virtual] |
Implements cajun::graphic_interface_t.
void glut_interface_t::update_data_callback | ( | ) | [static] |
References cajun::graphic_interface_t::m_graphics, and cajun::drawing_t::update_data().
Referenced by init_interface().
void glut_interface_t::update_data_callback2 | ( | ) | [static] |
References cajun::graphic_interface_t::m_graphics, and cajun::drawing_t::update_data2().
Referenced by init_interface().
void glut_interface_t::update_data_callback3 | ( | ) | [static] |
std::vector< color_node_t > glut_interface_t::m_background_color [static, protected] |
Referenced by draw_callback(), and init_interface().
GLUI * glut_interface_t::m_control_panel_glui = NULL [static, protected] |
Referenced by get_control_panel_glui(), and init_interface().
int glut_interface_t::m_control_panel_position [static, protected] |
Referenced by get_control_panel_position(), and init_interface().
int glut_interface_t::m_controlKey_index [static, protected] |
Referenced by controlKey_callback(), and set_controlKey_index().
bool glut_interface_t::m_ctrl_as_sub [static, protected] |
Referenced by init_interface().
int glut_interface_t::m_modifierKey_index [static, protected] |
Referenced by controlKey_callback(), mousebutton_callback(), normalKey_callback(), and set_controlKey_index().
int glut_interface_t::m_mouseKey_index [static, protected] |
Referenced by mousebutton_callback(), and set_controlKey_index().
int glut_interface_t::m_mouseState_index [static, protected] |
Referenced by mousebutton_callback(), and set_controlKey_index().
int glut_interface_t::m_vision_height [static, protected] |
Referenced by init_interface(), and reshape_callback3().
int glut_interface_t::m_vision_width [static, protected] |
Referenced by init_interface(), and reshape_callback3().
int glut_interface_t::m_viz_height [static, protected] |
Referenced by init_interface(), and reshape_callback().
int glut_interface_t::m_viz_width [static, protected] |
Referenced by init_interface(), and reshape_callback().
int glut_interface_t::m_window1_id = -1 [static, protected] |
Referenced by draw_callback(), get_main_window_id(), init_interface(), and reshape_callback().
int glut_interface_t::m_window2_id = -1 [static, protected] |
Referenced by draw_callback_3(), and init_interface().