Public Member Functions | |
void | load_model () |
Method called only once at the beginning (load off files ...). | |
void | draw_scene () |
Method called at every frame. | |
Private Member Functions | |
void | creation_damier () |
void | affichage_damier () |
Private Attributes | |
cpe::mesh | mesh_0 |
std::vector< double > | mesh_0_normal |
cpe::mesh | mesh_1 |
std::vector< double > | mesh_1_normal |
cpe::mesh | mesh_plan |
std::vector< double > | mesh_plan_normal |
TP 5ETI - CPE Lyon - 2011/2012
void scene::affichage_damier | ( | ) | [private] |
References mesh_plan, and mesh_plan_normal.
Referenced by draw_scene().
void scene::creation_damier | ( | ) | [private] |
References mesh_plan, mesh_plan_normal, cpe::mesh::normal_vertex(), cpe::mesh::scale(), and cpe::mesh::scale_unity().
Referenced by load_model().
void scene::draw_scene | ( | ) |
Method called at every frame.
References affichage_damier(), cpe::opengl_drawer::draw(), mesh_0, mesh_0_normal, mesh_1, and mesh_1_normal.
Referenced by draw_scene().
void scene::load_model | ( | ) |
Method called only once at the beginning (load off files ...).
References cpe::mesh::apply(), creation_damier(), cpe::mesh::load_off_file(), mesh_0, mesh_0_normal, mesh_1, mesh_1_normal, cpe::mesh::normal_vertex(), cpe::mesh::scale(), cpe::mesh::scale_unity(), and cpe::mesh::translate().
Referenced by load_model().
cpe::mesh scene::mesh_0 [private] |
Referenced by draw_scene(), and load_model().
std::vector<double> scene::mesh_0_normal [private] |
Referenced by draw_scene(), and load_model().
cpe::mesh scene::mesh_1 [private] |
Referenced by draw_scene(), and load_model().
std::vector<double> scene::mesh_1_normal [private] |
Referenced by draw_scene(), and load_model().
cpe::mesh scene::mesh_plan [private] |
Referenced by affichage_damier(), and creation_damier().
std::vector<double> scene::mesh_plan_normal [private] |
Referenced by affichage_damier(), and creation_damier().