Actual source code: dbuff.c

      1: #define PETSC_DLL
      2: /*
      3:        Provides the calling sequences for all the basic PetscDraw routines.
      4: */
     5:  #include src/sys/src/draw/drawimpl.h

      9: /*@
     10:    PetscDrawSetDoubleBuffer - Sets a window to be double buffered.

     12:    Collective on PetscDraw

     14:    Input Parameter:
     15: .  draw - the drawing context

     17:    Level: intermediate

     19:    Concepts: drawing^double buffer
     20:    Concepts: graphics^double buffer
     21:    Concepts: double buffer

     23: @*/
     24: PetscErrorCode PETSC_DLLEXPORT PetscDrawSetDoubleBuffer(PetscDraw draw)
     25: {
     29:   if (draw->ops->setdoublebuffer) {
     30:     (*draw->ops->setdoublebuffer)(draw);
     31:   }
     32:   return(0);
     33: }