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

Method BufferIdModeEnd

Rendering/ContextOpenGL2/vtkOpenGLContextDevice2D.cxx:426–448  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

424
425//------------------------------------------------------------------------------
426void vtkOpenGLContextDevice2D::BufferIdModeEnd()
427{
428 assert("pre: started" && this->GetBufferIdMode());
429
430 vtkOpenGLClearErrorMacro();
431
432 // Assume the renderer has been set previously during rendering (sse Begin())
433 int lowerLeft[2];
434 int usize, vsize;
435 this->Renderer->GetTiledSizeAndOrigin(&usize, &vsize, lowerLeft, lowerLeft + 1);
436 this->BufferId->SetValues(lowerLeft[0], lowerLeft[1]);
437
438 this->ProjectionMatrix->Pop();
439 this->PopMatrix();
440
441 this->Storage->RestoreGLState(this->RenderWindow->GetState(), true);
442
443 this->BufferId = nullptr;
444
445 vtkOpenGLCheckErrorMacro("failed after BufferIdModeEnd");
446
447 assert("post: done" && !this->GetBufferIdMode());
448}
449
450void vtkOpenGLContextDevice2D::SetMatrices(vtkShaderProgram* prog)
451{

Callers

nothing calls this directly

Calls 8

PopMatrixMethod · 0.95
assertFunction · 0.50
GetBufferIdModeMethod · 0.45
GetTiledSizeAndOriginMethod · 0.45
SetValuesMethod · 0.45
PopMethod · 0.45
RestoreGLStateMethod · 0.45
GetStateMethod · 0.45

Tested by

no test coverage detected