Lock a layer for exclusive use by an application
int PgLockLayer( int layer );
ph
PgLockLayer() acquires exclusive use of a layer by an application. To unlock a layer, call PgUnlockLayer().
Other applications may not use PgSetLayerSurface() or PgSetLayerArg() on a locked surface.
Your application should unlock its layers before it exits. You can lock a layer multiple times, but need to unlock it only once.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PdSetTargetDevice(), PgSetLayerArg(), PgSetLayerSurface(), PgUnlockLayer()
“Layers” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide