disp_2d_caps_t

Description of your driver's 2D capabilities

Synopsis:

#include <draw.h>

typedef struct disp_2d_caps {
    int         size;
    unsigned    accel_flags;
    unsigned    flags;
    int         min_stride;
    int         max_stride;
    int         stride_gran;
    unsigned    poly_flags;
    unsigned    poly_max_points;
} disp_2d_caps_t;

Description:

The disp_2d_caps_t structure describes a driver's 2D capabilities. Your driver fills it in when the graphics framework calls the get_2d_caps() function defined in disp_draw_miscfuncs_t.

The disp_2d_caps_t structure includes the following members:

size
The size of this structure, in bytes.
accel_flags
Flags (defined in <draw.h>) describing which draw operations are performed with hardware acceleration:
flags
Flags (also defined in <draw.h>) describing miscellaneous properties of the 2D renderer:
min_stride
The minimum stride that a 2D surface can be.
max_stride
The maximum stride that a 2D surface can be.
stride_gran
A value that the stride of the 2D surface must be a multiple of.
poly_flags
Polygon classes that can be handled:
poly_max_points
The maximum number of points in a single polygon that the hardware can handle.

Classification:

Neutrino

See also:

disp_draw_miscfuncs_t