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

Method SetZbufferData

Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx:2678–2690  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2676
2677//------------------------------------------------------------------------------
2678int vtkOpenGLRenderWindow::SetZbufferData(int x1, int y1, int x2, int y2, vtkFloatArray* buffer)
2679{
2680 int width, height;
2681 width = abs(x2 - x1) + 1;
2682 height = abs(y2 - y1) + 1;
2683 int size = width * height;
2684 if (buffer->GetMaxId() + 1 != size)
2685 {
2686 vtkErrorMacro("Buffer is of wrong size.");
2687 return VTK_ERROR;
2688 }
2689 return this->SetZbufferData(x1, y1, x2, y2, buffer->GetPointer(0));
2690}
2691
2692//------------------------------------------------------------------------------
2693int vtkOpenGLRenderWindow::SetZbufferData(int x1, int y1, int x2, int y2, float* buffer)

Callers 1

TestSetZBufferFunction · 0.45

Calls 15

GetShaderCacheMethod · 0.95
vtkglDisableMethod · 0.80
vtkglEnableMethod · 0.80
vtkglDepthFuncMethod · 0.80
vtkglColorMaskMethod · 0.80
CreateDepthFromRawMethod · 0.80
ActivateDrawBufferMethod · 0.80
CopyToFrameBufferMethod · 0.80
DeleteMethod · 0.65
absFunction · 0.50

Tested by 1

TestSetZBufferFunction · 0.36