model.cpp
// Draws the model, and thus all its meshes.
Draws the model, and thus all its meshes.
Draws the model and thus all its meshes .
void Model::Draw(Shader& shader)
{
	glEnable(GL_DEPTH_TEST);
    for (GLuint i = 0; i < this->meshes.size(); i++)
        this->meshes[i].Draw(shader);
}
void Model :: Draw ( Shader & shader ) { glEnable ( GL_DEPTH_TEST ) ; for ( GLuint i = 0 ; i < this -> meshes . size ( ) ; i ++ ) this -> meshes [ i ] . Draw ( shader ) ; }
Draws the model, and thus all its meshes.
Draws the model and thus all its meshes .