MCPcopy Create free account
hub / github.com/brenocq/implot3d / PlotTriangle

Function PlotTriangle

implot3d_items.cpp:1379–1387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1377}
1378
1379IMPLOT3D_TMP void PlotTriangle(const char* label_id, const T* xs, const T* ys, const T* zs, int count, const ImPlot3DSpec& spec) {
1380 if (count < 3)
1381 return;
1382 int stride = Stride<T>(spec);
1383 GetterXYZ<IndexerIdx<T>, IndexerIdx<T>, IndexerIdx<T>> getter(IndexerIdx<T>(xs, count, spec.Offset, stride),
1384 IndexerIdx<T>(ys, count, spec.Offset, stride),
1385 IndexerIdx<T>(zs, count, spec.Offset, stride), count);
1386 return PlotTriangleEx(label_id, getter, spec);
1387}
1388
1389#define INSTANTIATE_MACRO(T) \
1390 template IMPLOT3D_API void PlotTriangle<T>(const char* label_id, const T* xs, const T* ys, const T* zs, int count, const ImPlot3DSpec& spec);

Callers 2

DemoTrianglePlotsFunction · 0.85
Demo_PerIndexColorsFunction · 0.85

Calls 1

PlotTriangleExFunction · 0.85

Tested by

no test coverage detected