------------------------------------------------------------------------------ Call after glDraw* commands to ensure that vertices are properly captured for GL2PS export.
| 181 | // Call after glDraw* commands to ensure that vertices are properly captured |
| 182 | // for GL2PS export. |
| 183 | void PostDraw(vtkOpenGLHelper& helper, vtkRenderer* ren, unsigned char col[4]) |
| 184 | { |
| 185 | vtkOpenGLGL2PSHelper* gl2ps = vtkOpenGLGL2PSHelper::GetInstance(); |
| 186 | if (gl2ps && gl2ps->GetActiveState() == vtkOpenGLGL2PSHelper::Capture && helper.Program) |
| 187 | { |
| 188 | if (vtkTransformFeedback* tfc = helper.Program->GetTransformFeedback()) |
| 189 | { |
| 190 | tfc->ReadBuffer(); |
| 191 | tfc->ReleaseGraphicsResources(); |
| 192 | gl2ps->ProcessTransformFeedback(tfc, ren, col); |
| 193 | tfc->ReleaseBufferData(); |
| 194 | } |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | //------------------------------------------------------------------------------ |
| 199 | // Returns true if the startAngle and stopAngle (as used in the ellipse drawing |
no test coverage detected