------------------------------------------------------------------------------
| 1412 | |
| 1413 | //------------------------------------------------------------------------------ |
| 1414 | vtkPixelBufferObject* vtkOpenGLFramebufferObject::DownloadColor1( |
| 1415 | int extent[4], int vtkType, int channel) |
| 1416 | { |
| 1417 | assert(this->Context); |
| 1418 | GLenum oglChannel = 0; |
| 1419 | switch (channel) |
| 1420 | { |
| 1421 | case 0: |
| 1422 | oglChannel = GL_RED; |
| 1423 | break; |
| 1424 | case 1: |
| 1425 | oglChannel = GL_GREEN; |
| 1426 | break; |
| 1427 | case 2: |
| 1428 | oglChannel = GL_BLUE; |
| 1429 | break; |
| 1430 | default: |
| 1431 | vtkErrorMacro("Invalid channel"); |
| 1432 | return nullptr; |
| 1433 | } |
| 1434 | |
| 1435 | return this->Download(extent, vtkType, 1, this->GetOpenGLType(vtkType), oglChannel); |
| 1436 | } |
| 1437 | |
| 1438 | //------------------------------------------------------------------------------ |
| 1439 | vtkPixelBufferObject* vtkOpenGLFramebufferObject::Download( |
nothing calls this directly
no test coverage detected