WVR_GetBlendOverlayColor¶
-
WVR_EXPORT WVR_OverlayError WVR_GetBlendOverlayColor(int32_t overlayId, WVR_OverlayBlendColor_t * color)
Gets the color ratio from WVR_GetBlendOverlayColor color. Get red/green/blue through members .r/.g/.b.
- Return
- The error code of get overlay color.
- Version
- API Level 1
- Parameters
overlayId
: which overlay should be control.color
: Get color sets through WVR_OverlayBlendColor_t.
How to use¶
Here is an example for the function:
#include <wvr/wvr_overlay.h>
int32_t mOverlayId;
void exampleFun() {
WVR_GenOverlay(&mOverlayId);
WVR_OverlayBlendColor_t color;
WVR_GetBlendOverlayColor(mOverlayId, &color);
WVR_DelOverlay(mOverlayId);
}