Skip to content
  • Jaswant Panchumarti (Kitware)'s avatar
    Context2D: abstract cached-draw API. · 21b5a3aa
    Jaswant Panchumarti (Kitware) authored
    - The alternative draw functions accept a cache identifier and vtkDataArray instances instead of raw pointers.
    - The graphics implementation will associate the vtkDataArray(s) with the cache identifier, so that any pre-existing graphics objects can be retrieved during subsequent frames if the vtkDataArray(s) have not changed.
    - This API is available only for DrawPoints, DrawMarkers, DrawPointSprites and DrawTriangleMesh.
    - The other Draw functions cannot use caching because new primitives are generated in temporary C++ vectors just before the draw call.
    - Add timer events around glDrawArrays
    21b5a3aa