WVR_GetBlendOverlayAlpha

WVR_EXPORT WVR_OverlayError WVR_GetBlendOverlayAlpha(int32_t overlayId, float * alpha)

Gets the alpha ratio from the overlay.

Return
The error code of get overlay alpha.
Version
API Level 1
Parameters
  • overlayId: which overlay should be control.
  • alpha: Alpha value to get.

How to use

Here is an example for the function:

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

void exampleFun() {
    WVR_GenOverlay(&mOverlayId);
    float alpha;
    WVR_GetBlendOverlayAlpha(mOverlayId, &alpha);
    WVR_DelOverlay(mOverlayId);
}