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

Method SetValues

Rendering/ContextOpenGL2/vtkOpenGLContextBufferId.cxx:96–102  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

94
95//------------------------------------------------------------------------------
96void vtkOpenGLContextBufferId::SetValues(int srcXmin, int srcYmin)
97{
98 assert("pre: is_allocated" && this->IsAllocated());
99
100 // copy the current read buffer to the texture.
101 this->Texture->CopyFromFrameBuffer(srcXmin, srcYmin, 0, 0, this->Width, this->Height);
102}
103
104//------------------------------------------------------------------------------
105vtkIdType vtkOpenGLContextBufferId::GetPickedItem(int x, int y)

Callers 1

BufferIdModeEndMethod · 0.45

Calls 3

IsAllocatedMethod · 0.95
CopyFromFrameBufferMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected