C

<platforminterface/blendhelper.h> - Blendhelpers for tiled blending operations

Workaround for 2D accelerators that don't have a way to blend a color directly. More...

Header: #include <platforminterface/blendhelper.h>

Functions

void blendRectTiled(Qul::PlatformInterface::DrawingDevice *buffer, const Qul::PlatformInterface::Rect &rect, Qul::PlatformInterface::Rgba32 color, void (*)() finish, void (*)(void *, int) invalidateCache)
void blendRectTiledAlphaMap(Qul::PlatformInterface::DrawingDevice *buffer, const Qul::PlatformInterface::Rect &rect, Qul::PlatformInterface::Rgba32 color, void (*)() finish, void (*)(void *, int) invalidateCache)

Detailed Description

Function Documentation

[since Qt Quick Ultralite (Platform) 1.5] void blendRectTiled(Qul::PlatformInterface::DrawingDevice *buffer, const Qul::PlatformInterface::Rect &rect, Qul::PlatformInterface::Rgba32 color, void (*)() finish, void (*)(void *, int) invalidateCache)

Workaround for 2D accelerators that don't have a way to blend a color directly.

Blends color onto rect by filling an appropriately large buffer with the source color and used that buffer as a source, potentially doing multiple calls in order to tile the whole output rectangle.

buffer is the drawing device to blend onto. finish is called at the end of the blending operation. May be used to wait for asynchronous blending operations. If not required NULL should be given. invalidateCache will be called to allow invalidating caches for the allocated tile memory. If not required NULL should be given.

This function was introduced in Qt Quick Ultralite (Platform) 1.5.

[since Qt Quick Ultralite (Platform) 1.5] void blendRectTiledAlphaMap(Qul::PlatformInterface::DrawingDevice *buffer, const Qul::PlatformInterface::Rect &rect, Qul::PlatformInterface::Rgba32 color, void (*)() finish, void (*)(void *, int) invalidateCache)

Workaround for 2D accelerators that don't have a way to blend a color directly.

Same as blendRectTiled, but uses DrawingEngine::blendAlphaMap

Useful when alpha map blending is accelerated, as some bandwidth is saved by not having to blend ARGB32.

Blends color onto rect by filling an appropriately large buffer with the source color and used that buffer as a source, potentially doing multiple calls in order to tile the whole output rectangle.

buffer is the drawing device to blend onto. finish is called at the end of the blending operation. May be used to wait for asynchronous blending operations. If not required NULL should be given. invalidateCache will be called to allow invalidating caches for the allocated tile memory. If not required NULL should be given.

This function was introduced in Qt Quick Ultralite (Platform) 1.5.

Available under certain Qt licenses.
Find out more.