Mesh.hpp
  
Go to the documentation of this file.
   77                 void init(const std::string& _fileName="---", const std::string& _shaderName="DATA:textured3D2.prog");
   82                 virtual void draw(mat4& _positionMatrix, bool _enableDepthTest=true, bool _enableDepthUpdate=true);
  150                 void addPoint(const std::string& _layerName, const vec3& _pos, const etk::Color<float>& _color);
  152                 void addLine(const std::string& _layerName, const vec3& _pos1, const vec3& _pos2, const etk::Color<float>& _color) {
  155                 void addLine(const std::string& _layerName, const vec3& _pos1, const vec3& _pos2, const etk::Color<float>& _color1, const etk::Color<float>& _color2);
  156                 void addLines(const std::string& _layerName, const std::vector<vec3>& _list, const etk::Color<float>& _color);
  157                 void addLines(const std::string& _layerName, const std::vector<vec3>& _list, const std::vector<etk::Color<float>>& _color);
  170                 void addTriangle(const std::string& _layerName, const vec3& _pos1, const vec3& _pos2, const vec3& _pos3, const etk::Color<float>& _color) {
  184                 void addTriangle(const std::string& _layerName, const vec3& _pos1, const vec3& _pos2, const vec3& _pos3,
  185                                  const etk::Color<float>& _color1, const etk::Color<float>& _color2, const etk::Color<float>& _color3);
  196                 void addQuad(const std::string& _layerName, const vec3& _pos1, const vec3& _pos2, const vec3& _pos3, const vec3& _pos4, const etk::Color<float>& _color) {
  212                 void addQuad(const std::string& _layerName, const vec3& _pos1, const vec3& _pos2, const vec3& _pos3, const vec3& _pos4,
  213                                  const etk::Color<float>& _color1, const etk::Color<float>& _color2, const etk::Color<float>& _color3, const etk::Color<float>& _color4) {
  252                                  const etk::Color<float>& _color1=etk::color::white, const etk::Color<float>& _color2=etk::color::white, const etk::Color<float>& _color3=etk::color::white);
  271                     addQuad(_layerName, _pos1, _pos2, _pos3, _pos4, _uv1, _uv2, _uv3, _uv4, _color, _color, _color, _color);
  293                              const etk::Color<float>& _color1=etk::color::white, const etk::Color<float>& _color2=etk::color::white, const etk::Color<float>& _color3=etk::color::white, const etk::Color<float>& _color4=etk::color::white) {
Definition: Mesh.hpp:30
void setCheckNormal(bool _status)
set the check of normal position befor sending it to the openGl card 
Definition: Mesh.hpp:106
std::vector< etk::Color< float > > m_listColor
List of all Color point in the mesh. 
Definition: Mesh.hpp:66
void addQuad(const std::string &_layerName, const vec3 &_pos1, const vec3 &_pos2, const vec3 &_pos3, const vec3 &_pos4, const vec2 &_uv1, const vec2 &_uv2, const vec2 &_uv3, const vec2 &_uv4, const etk::Color< float > &_color1=etk::color::white, const etk::Color< float > &_color2=etk::color::white, const etk::Color< float > &_color3=etk::color::white, const etk::Color< float > &_color4=etk::color::white)
draw a textured quad (usefull for debug and test) 
Definition: Mesh.hpp:290
void addQuad(const std::string &_layerName, const vec3 &_pos1, const vec3 &_pos2, const vec3 &_pos3, const vec3 &_pos4, const etk::Color< float > &_color1, const etk::Color< float > &_color2, const etk::Color< float > &_color3, const etk::Color< float > &_color4)
draw a colored quad (usefull for debug and test) 
Definition: Mesh.hpp:212
Definition: Light.hpp:14
etk::Hash< FaceIndexing > m_listFaces
List of all Face for the mesh. 
Definition: Mesh.hpp:69
std::vector< ememory::SharedPtr< ege::PhysicsShape > > m_physics
collision shape module ... (independent of bullet lib) 
Definition: Mesh.hpp:71
bool m_checkNormal
when enable, this check the normal of the mesh before sending it at the 3d card 
Definition: Mesh.hpp:50
Definition: AudioElement.hpp:8
Definition: Material.hpp:18
void addTriangle(const std::string &_layerName, const vec3 &_pos1, const vec3 &_pos2, const vec3 &_pos3, const vec2 &_uv1, const vec2 &_uv2, const vec2 &_uv3, const etk::Color< float > &_color)
draw a textured colored triangle (usefull for debug and test) 
Definition: Mesh.hpp:229
std::vector< vec3 > m_listVertex
List of all vertex in the element. 
Definition: Mesh.hpp:64
void addQuad(const std::string &_layerName, const vec3 &_pos1, const vec3 &_pos2, const vec3 &_pos3, const vec3 &_pos4, const vec2 &_uv1, const vec2 &_uv2, const vec2 &_uv3, const vec2 &_uv4, const etk::Color< float > &_color)
draw a textured colored quad (usefull for debug and test) 
Definition: Mesh.hpp:267
void * getShape()
get the pointer on the shame (no type) 
Definition: Mesh.hpp:134
std::vector< vec3 > m_listFacesNormal
List of all Face normal, when calculated. 
Definition: Mesh.hpp:67
std::vector< vec3 > m_listVertexNormal
List of all Face normal, when calculated. 
Definition: Mesh.hpp:68
void addFaceIndexing(const std::string &_layerName)
Add in the faces list the layer requested. 
std::vector< vec2 > m_listUV
List of all UV point in the mesh (for the specify texture) 
Definition: Mesh.hpp:65
void addTriangle(const std::string &_layerName, const vec3 &_pos1, const vec3 &_pos2, const vec3 &_pos3, const etk::Color< float > &_color)
draw a colored triangle (usefull for debug and test) 
Definition: Mesh.hpp:170
void addQuad(const std::string &_layerName, const vec3 &_pos1, const vec3 &_pos2, const vec3 &_pos3, const vec3 &_pos4, const etk::Color< float > &_color)
draw a colored quad (usefull for debug and test) 
Definition: Mesh.hpp:196
bool getCheckNormal()
get the check value of normal position befor sending it to the openGl card 
Definition: Mesh.hpp:113
const Color white
void setShape(void *_shape)
set the shape pointer (no type == > user might know it ...) 
 1.8.12