342 { |
342 { |
343 vertex.selected = (ids.contains({vertex.id})) ? 1 : 0; |
343 vertex.selected = (ids.contains({vertex.id})) ? 1 : 0; |
344 } |
344 } |
345 const GLsizeiptr size = static_cast<int>(vector.size() * sizeof vector[0]); |
345 const GLsizeiptr size = static_cast<int>(vector.size() * sizeof vector[0]); |
346 object.buffer.bind(); |
346 object.buffer.bind(); |
347 glfunc().glBufferSubData(GL_ARRAY_BUFFER, 0, size, vector.data()); |
347 glBufferSubData(GL_ARRAY_BUFFER, 0, size, vector.data()); |
348 object.buffer.release(); |
348 object.buffer.release(); |
349 } |
349 } |
350 } |
350 } |
351 |
351 |
352 std::size_t gl::vertexCount(const gl::ModelShaders* shaders, const gl::ArrayClass arrayClass) |
352 std::size_t gl::vertexCount(const gl::ModelShaders* shaders, const gl::ArrayClass arrayClass) |