WVR_SetBlendOverlayAlpha

WVR_EXPORT WVR_OverlayError WVR_SetBlendOverlayAlpha(int32_t overlayId, float alpha)

Sets the alpha ratio to the overlay. Use 0.0 to 1.0 to alpha.

Return
The error code of blend overlay alpha.
Version
API Level 1
Parameters
  • overlayId: which overlay should be control.
  • alpha: Alpha value to set. This should be a value between 0 (fully transparent) and 1.0 (fully opaque).

How to use

Here is an example for the function:

#include <wvr/wvr_overlay.h>
int32_t mOverlayId;

void exampleFun() {
    WVR_GenOverlay(&mOverlayId);
    WVR_SetBlendOverlayAlpha(mOverlayId, 0.7f);
    WVR_DelOverlay(mOverlayId);
}