| 119 | |
| 120 | |
| 121 | void Model::addEBO(const std::vector<GLuint>& indices) |
| 122 | { |
| 123 | GLuint ebo; |
| 124 | glGenBuffers(1, &ebo); |
| 125 | glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ebo); |
| 126 | glBufferData(GL_ELEMENT_ARRAY_BUFFER, |
| 127 | indices.size() * sizeof (indices[0]), |
| 128 | indices.data(), |
| 129 | GL_STATIC_DRAW); |
| 130 | |
| 131 | m_buffers.push_back(ebo); |
| 132 | } |
nothing calls this directly
no outgoing calls
no test coverage detected