| 8 | #include "../Util/Utils.h" |
| 9 | |
| 10 | Track::Track(std::vector<glm::vec3> verts, std::vector<glm::vec3> norms, std::vector<glm::vec2> uvs, std::vector<unsigned int> texture_indices, std::vector<unsigned int> indices, std::vector<glm::vec4> shading_data, std::vector<uint32_t> debug_data, glm::vec3 center_position) : super("TrackMesh", verts, uvs, norms, indices, true, center_position) { |
| 11 | m_texture_indices = texture_indices; |
| 12 | shadingData = shading_data; |
| 13 | m_debug_data = debug_data; |
| 14 | // Index Shading data |
| 15 | for(unsigned int m_vertex_index : indices) { |
| 16 | m_shading_data.push_back(shading_data[m_vertex_index]); |
| 17 | } |
| 18 | enable(); |
| 19 | ASSERT(genBuffers(), "Unable to generate GL Buffers for Track Model"); |
| 20 | update(); |
| 21 | } |
| 22 | |
| 23 | Track::Track(std::vector<glm::vec3> verts, std::vector<glm::vec2> uvs, std::vector<unsigned int> texture_indices, std::vector<unsigned int> indices, |
| 24 | std::vector<glm::vec4> shading_data, glm::vec3 center_position) : super("TrackMesh", verts, uvs, std::vector<glm::vec3>(), indices, true, center_position){ |
nothing calls this directly
no outgoing calls
no test coverage detected