MCPcopy Create free account
hub / github.com/Kitware/VTK / DownloadColor1

Method DownloadColor1

Rendering/OpenGL2/vtkOpenGLFramebufferObject.cxx:1414–1436  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1412
1413//------------------------------------------------------------------------------
1414vtkPixelBufferObject* 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//------------------------------------------------------------------------------
1439vtkPixelBufferObject* vtkOpenGLFramebufferObject::Download(

Callers

nothing calls this directly

Calls 3

DownloadMethod · 0.95
GetOpenGLTypeMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected