xref: /petsc/src/sys/classes/draw/interface/drawregall.c (revision 42963b84bc3d3eb508a08ddbd058b7419ac22fe8)
15c6c1daeSBarry Smith 
25c6c1daeSBarry Smith /*
35c6c1daeSBarry Smith        Provides the calling sequences for all the basic PetscDraw routines.
45c6c1daeSBarry Smith */
55c6c1daeSBarry Smith #include <petsc-private/drawimpl.h>  /*I "petscdraw.h" I*/
65c6c1daeSBarry Smith 
75c6c1daeSBarry Smith EXTERN_C_BEGIN
8*42963b84SBarry Smith extern PetscErrorCode PetscDrawCreate_TikZ(PetscDraw);
95c6c1daeSBarry Smith #if defined(PETSC_HAVE_X)
105c6c1daeSBarry Smith extern PetscErrorCode PetscDrawCreate_X(PetscDraw);
115c6c1daeSBarry Smith #endif
125c6c1daeSBarry Smith #if defined(PETSC_HAVE_GLUT)
135c6c1daeSBarry Smith extern PetscErrorCode PetscDrawCreate_GLUT(PetscDraw);
145c6c1daeSBarry Smith #endif
155c6c1daeSBarry Smith #if defined(PETSC_HAVE_OPENGLES)
165c6c1daeSBarry Smith extern PetscErrorCode PetscDrawCreate_OpenGLES(PetscDraw);
175c6c1daeSBarry Smith #endif
185c6c1daeSBarry Smith extern PetscErrorCode PetscDrawCreate_Null(PetscDraw);
195c6c1daeSBarry Smith #if defined(PETSC_USE_WINDOWS_GRAPHICS)
205c6c1daeSBarry Smith extern PetscErrorCode PetscDrawCreate_Win32(PetscDraw);
215c6c1daeSBarry Smith #endif
225c6c1daeSBarry Smith EXTERN_C_END
235c6c1daeSBarry Smith 
245c6c1daeSBarry Smith #undef __FUNCT__
255c6c1daeSBarry Smith #define __FUNCT__ "PetscDrawRegisterAll"
265c6c1daeSBarry Smith /*@C
275c6c1daeSBarry Smith   PetscDrawRegisterAll - Registers all of the graphics methods in the PetscDraw package.
285c6c1daeSBarry Smith 
295c6c1daeSBarry Smith   Not Collective
305c6c1daeSBarry Smith 
315c6c1daeSBarry Smith   Level: developer
325c6c1daeSBarry Smith 
335c6c1daeSBarry Smith .seealso:  PetscDrawRegisterDestroy()
345c6c1daeSBarry Smith @*/
355c6c1daeSBarry Smith PetscErrorCode  PetscDrawRegisterAll(const char *path)
365c6c1daeSBarry Smith {
375c6c1daeSBarry Smith   PetscErrorCode ierr;
385c6c1daeSBarry Smith 
395c6c1daeSBarry Smith   PetscFunctionBegin;
405c6c1daeSBarry Smith 
41*42963b84SBarry Smith   ierr = PetscDrawRegisterDynamic(PETSC_DRAW_TIKZ,     path,"PetscDrawCreate_TikZ",  PetscDrawCreate_TikZ);CHKERRQ(ierr);
425c6c1daeSBarry Smith #if defined(PETSC_HAVE_OPENGLES)
435c6c1daeSBarry Smith   ierr = PetscDrawRegisterDynamic(PETSC_DRAW_OPENGLES, path,"PetscDrawCreate_OpenGLES",  PetscDrawCreate_OpenGLES);CHKERRQ(ierr);
445c6c1daeSBarry Smith #endif
455c6c1daeSBarry Smith #if defined(PETSC_HAVE_GLUT)
465c6c1daeSBarry Smith   ierr = PetscDrawRegisterDynamic(PETSC_DRAW_GLUT,     path,"PetscDrawCreate_GLUT",  PetscDrawCreate_GLUT);CHKERRQ(ierr);
475c6c1daeSBarry Smith #endif
485c6c1daeSBarry Smith #if defined(PETSC_HAVE_X)
495c6c1daeSBarry Smith   ierr = PetscDrawRegisterDynamic(PETSC_DRAW_X,        path,"PetscDrawCreate_X",     PetscDrawCreate_X);CHKERRQ(ierr);
505c6c1daeSBarry Smith #elif defined(PETSC_USE_WINDOWS_GRAPHICS)
515c6c1daeSBarry Smith   ierr = PetscDrawRegisterDynamic(PETSC_DRAW_WIN32,    path,"PetscDrawCreate_Win32", PetscDrawCreate_Win32);CHKERRQ(ierr);
525c6c1daeSBarry Smith #endif
535c6c1daeSBarry Smith   ierr = PetscDrawRegisterDynamic(PETSC_DRAW_NULL,     path,"PetscDrawCreate_Null",  PetscDrawCreate_Null);CHKERRQ(ierr);
545c6c1daeSBarry Smith   PetscFunctionReturn(0);
555c6c1daeSBarry Smith }
565c6c1daeSBarry Smith 
57