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

Method ReadyVTBOProgram

Rendering/ContextOpenGL2/vtkOpenGLContextDevice2D.cxx:601–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599}
600
601void vtkOpenGLContextDevice2D::ReadyVTBOProgram()
602{
603 if (!this->VTBO->Program)
604 {
605 std::string vs = "//VTK::System::Dec\n#define haveTCoords\n";
606 vs += myVertShader;
607 std::string fs = "//VTK::System::Dec\n#define haveTCoords\n";
608 fs += myFragShader;
609 this->VTBO->Program =
610 this->RenderWindow->GetShaderCache()->ReadyShaderProgram(vs.c_str(), fs.c_str(), "");
611 }
612 else
613 {
614 this->RenderWindow->GetShaderCache()->ReadyShaderProgram(this->VTBO->Program);
615 }
616}
617
618void vtkOpenGLContextDevice2D::ReadySBOProgram()
619{

Callers 3

CoreDrawTrianglesMethod · 0.95
DrawStringMethod · 0.95
DrawImageMethod · 0.95

Calls 3

GetShaderCacheMethod · 0.80
ReadyShaderProgramMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected