[Previous] [Contents] [Index] [Next]

PdOffscreenContext_t

Data structure that describes an offscreen context

Synopsis:

typedef struct pdoffscreencontext {
    PhDrawContext_t     dc;
    PgVidMemTag_t       id;
    PhRid_t             target_rid;
    PhDim_t             dim;
    long unsigned       format;
    long unsigned       flags;
    void * volatile     shared_ptr;
    unsigned long       shared_size;
    unsigned long       pitch;
    PhConnectId_t       connect_id;
    } PdOffscreenContext_t;

Description:

This data structure describes an offscreen context.


Note: Don't change the value of any of the members of this structure.

PdOffscreenContext_t includes:

dc
The draw context.
id
Offscreen memory block tag.
target_rid
The ID of the target region.
dim
A PhDim_t structure that defines the dimensions of the offscreen context.
format
The type of image; see PhImage_t.
flags
The flags used when the context was created; see PdCreateOffscreenContext() and PdDupOffscreenContext().
shared_ptr
A pointer to the shared memory object for the context. This is valid only after calling PdGetOffscreenContextPtr().
shared_size
The size of the shared memory object, in bytes.
pitch
The number of bytes per scan line.
connect_id
The ID of the connection to Photon.

Classification:

Photon

See also:

PdCreateOffscreenContext(), PdDupOffscreenContext(), PdGetOffscreenContextPtr(), PdSetOffscreenTranslation(), PgContextBlit(), PgContextBlitArea(), PgSwapDisplay(), PhDim_t

"Video memory offscreen" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide


[Previous] [Contents] [Index] [Next]