GfxFuncs

    Display

    Description:

    Defines pointers to the hardware acceleration driver functions.

    Summary

    Data Fields

    Details

    Blit

    Description:

    During bit blit, color space conversion (CSC), scaling, and rotation can be implemented.

    Parameters:

    Name

    Description

    srcSurface Indicates the pointer to the source bitmap.
    srcRect Indicates the pointer to the rectangle of the source bitmap.
    dstSurface Indicates the pointer to the destination bitmap.
    dstRect Indicates the pointer to the rectangle of the destination bitmap.

    Returns:

    Returns 0 if the operation is successful; returns an error code defined in otherwise.

    See also:

    Blit3

    DeinitGfx

    Description:

    Deinitializes hardware acceleration.

    Returns:

    Returns 0 if the operation is successful; returns an error code defined in otherwise.

    See also:

    InitGfx

    DrawCircle

    Description:

    Draws a circle with a specified center and radius on the canvas using a given color.

    Parameters:

    Returns:

    Returns 0 if the operation is successful; returns an error code defined in otherwise.

    Description:

    Draws a straight line with a given color on the canvas.

    Parameters:

    Name

    Description

    surface Indicates the pointer to the canvas.
    line Indicates the pointer to the line to draw.
    opt Indicates the pointer to the hardware acceleration option.

    Returns:

    Returns 0 if the operation is successful; returns an error code defined in otherwise.

    DrawRectangle

    Draws a rectangle with a given color on the canvas.

    Parameters:

    Returns:

    Returns 0 if the operation is successful; returns an error code defined in DispErrCode otherwise.

    See also:

    FillRect

    Description:

    Fills a rectangle with a given color on the canvas.

    Parameters:

    Name

    Description

    surface Indicates the pointer to the canvas.
    rect Indicates the pointer to the rectangle to fill.
    color Indicates the color to fill.
    opt Indicates the pointer to the hardware acceleration option.

    Returns:

    Returns 0 if the operation is successful; returns an error code defined in DispErrCode otherwise.

    InitGfx

    Description:

    Initializes hardware acceleration.

    Returns:

    Returns 0 if the operation is successful; returns an error code defined in DispErrCode otherwise.

    See also:

    Description:

    Synchronizes hardware acceleration.

    Use this function for hardware acceleration synchronization when hardware acceleration is used to draw and blit bitmaps. This function blocks the process until hardware acceleration is complete.

    Parameters:

    Returns: