| 1001 | }; |
| 1002 | |
| 1003 | template <typename TGX, typename TGY, typename TGZ> struct GetterMeshTriangles { |
| 1004 | GetterMeshTriangles(TGX gx, TGY gy, TGZ gz, const unsigned int* idx, int idx_count) |
| 1005 | : Gx(gx), Gy(gy), Gz(gz), Idx(idx), TriCount(idx_count / 3), Count(idx_count) {} |
| 1006 | |
| 1007 | template <typename I> IMPLOT3D_INLINE ImPlot3DPoint operator()(I i) const { |
| 1008 | unsigned int vi = Idx[i]; |
| 1009 | return ImPlot3DPoint(Gx(vi), Gy(vi), Gz(vi)); |
| 1010 | } |
| 1011 | |
| 1012 | TGX Gx; |
| 1013 | TGY Gy; |
| 1014 | TGZ Gz; |
| 1015 | const unsigned int* Idx; |
| 1016 | int TriCount; |
| 1017 | int Count; |
| 1018 | }; |
| 1019 | |
| 1020 | //----------------------------------------------------------------------------- |
| 1021 | // [SECTION] Color and Size Getters |
nothing calls this directly
no outgoing calls
no test coverage detected