WVR_SetBlendOverlayColor¶
-
WVR_EXPORT WVR_OverlayError WVR_SetBlendOverlayColor(int32_t overlayId, const WVR_OverlayBlendColor_t * color)
Sets the color ratio to WVR_SetBlendOverlayColor color. Use 0.0 to 1.0 to per color.
- Return
- The error code of blend overlay color.
- Version
- API Level 1
- Parameters
overlayId
: which overlay should be control.color
: which contained color value of red/green/blue, the value is between 0 and 1 to set.
How to use¶
Here is an example for the function:
#include <wvr/wvr_overlay.h>
int32_t mOverlayId;
void exampleFun() {
WVR_GenOverlay(&mOverlayId);
const WVR_OverlayBlendColor_t color = { 1.0f, 0.0f, 0.0f };
WVR_SetBlendOverlayColor(mOverlayId, &color);
WVR_DelOverlay(mOverlayId);
}