Defines | |
#define | FRAMERATE 20 |
Functions | |
int | draw_scene () |
int | load_model () |
double | get_rand () |
int | setup_callback () |
static void | display_callback () |
static void | reshape_callback (int width, int height) |
static void | keyboard_callback (unsigned char key, int x, int y) |
static void | idle_callback () |
static void | motion_callback (int x, int y) |
static void | mouse_callback (int button, int action, int x, int y) |
int | main (int argc, char *argv[]) |
Variables | |
static double | current_time = 0 |
static double | last_time = 0 |
static double | info_last_time = 0 |
unsigned int | counter = 0 |
navigator_tool | nav |
cpe::mesh | mesh_draw |
std::vector< double > | mesh_normal |
spring_mesh | smesh |
double | stepsize = 0.1 |
#define FRAMERATE 20 |
Referenced by draw_scene().
static void display_callback | ( | ) | [static] |
References counter, display_manager_begin(), display_manager_end(), and draw_scene().
Referenced by setup_callback().
int draw_scene | ( | ) |
TP ETI5 - CPE Lyon - 2010-2011
References cpe::spring_mesh::apply_force(), cpe::spring_mesh::compute_force(), current_time, cpe::opengl_drawer::draw(), FRAMERATE, info_last_time, cpe::navigator_tool::is_grid(), cpe::navigator_tool::is_texture(), last_time, mesh_normal, cpe::mesh::normal_vertex(), stepsize, cpe::spring_mesh::store_vertices(), and cpe::spring_mesh::to_mesh().
Referenced by display_callback().
double get_rand | ( | ) |
static void idle_callback | ( | ) | [static] |
Referenced by setup_callback().
static void keyboard_callback | ( | unsigned char | key, | |
int | x, | |||
int | y | |||
) | [static] |
References keyboard_manager().
Referenced by setup_callback().
int load_model | ( | ) |
References cpe::spring_mesh::get_K_bending(), cpe::spring_mesh::get_K_shear(), cpe::spring_mesh::get_K_structural(), and stepsize.
Referenced by main().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References load_model(), print_help_start(), cpe::navigator_tool::screen_size_x(), cpe::navigator_tool::screen_size_y(), setup_callback(), and setup_opengl().
static void motion_callback | ( | int | x, | |
int | y | |||
) | [static] |
References motion_manager().
Referenced by setup_callback().
static void mouse_callback | ( | int | button, | |
int | action, | |||
int | x, | |||
int | y | |||
) | [static] |
References mouse_manager().
Referenced by setup_callback().
static void reshape_callback | ( | int | width, | |
int | height | |||
) | [static] |
References reshape_manager().
Referenced by setup_callback().
int setup_callback | ( | ) |
References display_callback(), idle_callback(), keyboard_callback(), motion_callback(), mouse_callback(), and reshape_callback().
Referenced by main().
unsigned int counter = 0 |
Referenced by display_callback(), and cpe::mesh_io_off::load_mesh_io_off().
double current_time = 0 [static] |
Referenced by draw_scene().
double info_last_time = 0 [static] |
Referenced by draw_scene().
double last_time = 0 [static] |
Referenced by draw_scene().
std::vector<double> mesh_normal |
Referenced by draw_scene().
double stepsize = 0.1 |
Referenced by draw_scene(), and load_model().