Allocate a graphics context
PhGC_t *PgCreateGC( int unused );
ph
This function allocates a graphics context. A graphics context contains the entire draw state, including color, clipping, and current region.
| If your application calls both Pg and Pt functions, you must provide one graphics context for the Pg functions and a separate context for the Pt functions. To do this, call PgSetGC() every time you switch from one API to the other. |
PgCreateGC() doesn't use its argument; set it to 0.
A pointer to a graphics context, or NULL if an error occurs.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PgDestroyGC(), PgSetDrawBufferSize(), PgSetGC()