scene Class Reference

Collaboration diagram for scene:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

TP 5ETI - CPE Lyon - 2011/2012


Member Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:


Member Data Documentation

Referenced by draw_scene(), and load_model().

std::vector<double> scene::mesh_0_normal [private]

Referenced by draw_scene(), and load_model().

Referenced by draw_scene(), and load_model().

std::vector<double> scene::mesh_1_normal [private]

Referenced by draw_scene(), and load_model().

std::vector<double> scene::mesh_plan_normal [private]

The documentation for this class was generated from the following files:
Generated on Fri Aug 19 14:45:29 2011 by  doxygen 1.6.3