| 599 | } |
| 600 | |
| 601 | void 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 | |
| 618 | void vtkOpenGLContextDevice2D::ReadySBOProgram() |
| 619 | { |
no test coverage detected