# PetscInitializeDrawPackage
This function initializes everything in the `PetscDraw` package. It is called from PetscDLLibraryRegister_petsc() when using dynamic libraries, and on the call to `PetscInitialize()` when using shared or static libraries. 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawInitializePackage(void)
```



## See Also
 `PetscDraw`, `PetscInitialize()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/interface/draw.c.html#PetscInitializeDrawPackage">src/sys/classes/draw/interface/draw.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/draw/interface/draw.c)


[Index of all Draw routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
