------------------------------------------------------------------------------
| 479 | |
| 480 | //------------------------------------------------------------------------------ |
| 481 | std::vector<texinfo> vtkOpenGLPolyDataMapper::GetTextures(vtkActor* actor) |
| 482 | { |
| 483 | std::vector<texinfo> res; |
| 484 | |
| 485 | if (this->ColorTextureMap) |
| 486 | { |
| 487 | res.emplace_back(this->InternalColorTexture, "colortexture"); |
| 488 | } |
| 489 | if (actor->GetTexture()) |
| 490 | { |
| 491 | res.emplace_back(actor->GetTexture(), "actortexture"); |
| 492 | } |
| 493 | auto textures = actor->GetProperty()->GetAllTextures(); |
| 494 | for (const auto& ti : textures) |
| 495 | { |
| 496 | res.emplace_back(ti.second, ti.first); |
| 497 | } |
| 498 | return res; |
| 499 | } |
| 500 | |
| 501 | //------------------------------------------------------------------------------ |
| 502 | bool vtkOpenGLPolyDataMapper::HaveTCoords(vtkPolyData* poly) |
no test coverage detected