Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pglayercaps_t.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pglayercaps_t.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pglayercaps_t.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pglayercaps_t.html on line 8

PgLayerCaps_t

Capabilities for a layer

Synopsis:

typedef struct {
    unsigned int    format;
    long            owner;

    unsigned int    caps;
    unsigned int    alpha_caps;
    unsigned int    alpha_combine_caps;
    unsigned int    chroma_caps;

    int     max_data_width;
    int     max_data_height;

    int     max_src_width;
    int     max_src_height;

    int     max_dst_width;
    int     max_dst_height;
    int     min_dst_width;
    int     min_dst_height;

    int     max_x_scale;
    int     max_y_scale;
    int     min_x_scale;
    int     min_y_scale;

    unsigned int    reserved[4];
} PgLayerCaps_t;

Description:

The PgLayerCaps_t structure describes the capabilities of a layer. To fill in this structure for a layer, call PgGetLayerCaps(). To set the capabilities, call PgSetLayerArg().

The members of the PgLayerCaps_t structure include:

format
The layer format that corresponds to the format index that you pass to PgGetLayerCaps(); one of:
owner
The Photon client ID of the owner, if the surface is locked.
caps
General capabilities; a combination of the following:
alpha_caps
Alpha capabilities. Only global and per-pixel alpha blending are currently supported. Alpha maps aren't supported for blending between layers.
alpha_combine_caps
Alpha combine capabilities.
chroma_caps
Chroma key capabilities:
max_data_width, max_data_height
The maximum size of a layer surface, in pixels.
max_src_width, max_src_height
The maximum size of the source viewport, in pixels.
max_dst_width, max_dst_height
The maximum size of the destination viewport, in pixels.
min_dst_width, min_dst_height
The minimum size of the destination viewport, in pixels.
max_x_scale
The maximum scaling factor for scaling up in the horizontal direction:

Values less than 1 are invalid.

max_y_scale
The maximum scaling factor for scaling up in the vertical direction:

Values less than 1 are invalid.

min_x_scale
The maximum scaling factor for scaling down in the horizontal direction:

Values less than 1 are invalid.

min_y_scale
The maximum scaling factor for scaling down in the vertical direction:

Values less than 1 are invalid.

Classification:

Photon

See also:

PgGetLayerCaps(), PgSetLayerArg(), PhImage_t

Layers in the Raw Drawing and Animation chapter of the Photon Programmer's Guide


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pglayercaps_t.html on line 393

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pglayercaps_t.html on line 393