src/gl/compiler.cpp

changeset 291
42b4953dff85
parent 290
0fd926ebb03b
child 297
bc92f97498f7
equal deleted inserted replaced
290:0fd926ebb03b 291:42b4953dff85
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)

mercurial