9 const float* _positions_Ptr,
10 const unsigned int _pos_size,
11 const float* _normals_Ptr,
12 const unsigned int _norm_size,
14 const unsigned int _uv_size,
15 const unsigned int* _index_Ptr,
16 const unsigned int _ind_size)
25 diffuse_texture_Ptr(_diffuse_texture)
31 glBufferData(GL_ARRAY_BUFFER, _uv_size * 2 *
sizeof(
float), _uv_Ptr, GL_STATIC_DRAW);
32 glBindBuffer(GL_ARRAY_BUFFER,0);
41 glEnableVertexAttribArray(shader_in_uv_handle);
42 glVertexAttribPointer(shader_in_uv_handle, 2, GL_FLOAT, GL_FALSE, 0, 0);
46 glBindBuffer(GL_ARRAY_BUFFER, 0);
47 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
67 glm::value_ptr(_projectionMatrix));
71 glm::value_ptr(this->modelMatrix));
80 glDrawElements(GL_TRIANGLES, this->
index_count, GL_UNSIGNED_INT,0);