Actual source code: drawregall.c

petsc-3.5.4 2015-05-23
Report Typos and Errors
  2: /*
  3:        Provides the calling sequences for all the basic PetscDraw routines.
  4: */
  5: #include <petsc-private/drawimpl.h>  /*I "petscdraw.h" I*/

  7: PETSC_EXTERN PetscErrorCode PetscDrawCreate_TikZ(PetscDraw);
  8: #if defined(PETSC_HAVE_X)
  9: PETSC_EXTERN PetscErrorCode PetscDrawCreate_X(PetscDraw);
 10: #endif
 11: #if defined(PETSC_HAVE_GLUT)
 12: PETSC_EXTERN PetscErrorCode PetscDrawCreate_GLUT(PetscDraw);
 13: #endif
 14: #if defined(PETSC_HAVE_OPENGLES)
 15: PETSC_EXTERN PetscErrorCode PetscDrawCreate_OpenGLES(PetscDraw);
 16: #endif
 17: PETSC_EXTERN PetscErrorCode PetscDrawCreate_Null(PetscDraw);
 18: #if defined(PETSC_USE_WINDOWS_GRAPHICS)
 19: PETSC_EXTERN PetscErrorCode PetscDrawCreate_Win32(PetscDraw);
 20: #endif

 24: /*@C
 25:   PetscDrawRegisterAll - Registers all of the graphics methods in the PetscDraw package.

 27:   Not Collective

 29:   Level: developer

 31: .seealso:  PetscDrawRegisterDestroy()
 32: @*/
 33: PetscErrorCode  PetscDrawRegisterAll(void)
 34: {

 38:   PetscDrawRegister(PETSC_DRAW_TIKZ,     PetscDrawCreate_TikZ);
 39: #if defined(PETSC_HAVE_OPENGLES)
 40:   PetscDrawRegister(PETSC_DRAW_OPENGLES, PetscDrawCreate_OpenGLES);
 41: #endif
 42: #if defined(PETSC_HAVE_GLUT)
 43:   PetscDrawRegister(PETSC_DRAW_GLUT,     PetscDrawCreate_GLUT);
 44: #endif
 45: #if defined(PETSC_HAVE_X)
 46:   PetscDrawRegister(PETSC_DRAW_X,        PetscDrawCreate_X);
 47: #elif defined(PETSC_USE_WINDOWS_GRAPHICS)
 48:   PetscDrawRegister(PETSC_DRAW_WIN32,    PetscDrawCreate_Win32);
 49: #endif
 50:   PetscDrawRegister(PETSC_DRAW_NULL,     PetscDrawCreate_Null);
 51:   return(0);
 52: }