Changeset aaf27cd in opengl-game for new-game.cpp
- Timestamp:
- Dec 6, 2020, 2:50:38 AM (4 years ago)
- Branches:
- feature/imgui-sdl, master
- Children:
- e68d549
- Parents:
- 670c09a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
new-game.cpp
r670c09a raaf27cd 2169 2169 2170 2170 for (map<string, AttribInfo>::iterator it = smg.attribs.begin(); it != smg.attribs.end(); it++) { 2171 glBindBuffer(GL_ARRAY_BUFFER, it->second.buffer);2172 2173 2171 switch (it->second.attribType) { 2174 2172 case AttribType::POINT_VARYING: 2173 glBindBuffer(GL_ARRAY_BUFFER, it->second.buffer); 2175 2174 glBufferSubData(GL_ARRAY_BUFFER, obj.vertex_vbo_offset * GLsizeof(it->second.type) * it->second.size, 2176 2175 obj.num_points * GLsizeof(it->second.type) * it->second.size, getVectorAttribPtr(obj, it->second.fieldOffset)); 2177 2176 break; 2178 2177 case AttribType::OBJECT_VARYING: 2178 glBindBuffer(GL_ARRAY_BUFFER, it->second.buffer); 2179 2179 for (unsigned int i = 0; i < obj.num_points; i++) { 2180 2180 glBufferSubData(GL_ARRAY_BUFFER, (obj.vertex_vbo_offset + i) * GLsizeof(it->second.type) * it->second.size,
Note:
See TracChangeset
for help on using the changeset viewer.