Differential D16893 Diff 59975 source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_points.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_points.cc
| Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static void extract_points_iter_poly_mesh(const MeshRenderData *mr, | static void extract_points_iter_poly_mesh(const MeshRenderData *mr, | ||||
| const MPoly *mp, | const MPoly *mp, | ||||
| const int /*mp_index*/, | const int /*mp_index*/, | ||||
| void *_userdata) | void *_userdata) | ||||
| { | { | ||||
| GPUIndexBufBuilder *elb = static_cast<GPUIndexBufBuilder *>(_userdata); | GPUIndexBufBuilder *elb = static_cast<GPUIndexBufBuilder *>(_userdata); | ||||
| const MLoop *mloop = mr->mloop; | |||||
| const int ml_index_end = mp->loopstart + mp->totloop; | const int ml_index_end = mp->loopstart + mp->totloop; | ||||
| for (int ml_index = mp->loopstart; ml_index < ml_index_end; ml_index += 1) { | for (int ml_index = mp->loopstart; ml_index < ml_index_end; ml_index += 1) { | ||||
| const MLoop *ml = &mloop[ml_index]; | vert_set_mesh(elb, mr, mr->corner_verts[ml_index], ml_index); | ||||
| vert_set_mesh(elb, mr, ml->v, ml_index); | |||||
| } | } | ||||
| } | } | ||||
| static void extract_points_iter_ledge_bm(const MeshRenderData *mr, | static void extract_points_iter_ledge_bm(const MeshRenderData *mr, | ||||
| const BMEdge *eed, | const BMEdge *eed, | ||||
| const int ledge_index, | const int ledge_index, | ||||
| void *_userdata) | void *_userdata) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||