On this page
fsMapViewSetWeatherRadarClearColor
This function can be used to set the clear color of weather radar maps in the horizontal (FS_MAP_VIEW_WEATHER_RADAR_MODE_HORIZONTAL) and vertical (FS_MAP_VIEW_WEATHER_RADAR_MODE_VERTICAL) modes. The clear color is displayed outside of the weather radar cone. By default, the clear color is set to black. For alpha blending information, see Remarks.
Syntax
bool fsMapViewSetWeatherRadarClearColor(
FsContext ctx,
FsTextureId id,
FsColor color
);Members
| Parameters | Description |
|---|---|
ctx | A value of type FsContext provided as an argument of the gauge callback. |
id | The MapView render ID as returned by the function fsMapViewCreate. |
color | The clear color to set. |
Return Values
Returns false if:
- no texture matches the given MapView ID
- the
ctxis invalid
Otherwise it will return true.
Remarks
In order to get correct alpha blending (for clear colors with alpha values different than 0 and 1), the map view must be created with the FS_RENDER_IMAGE_PREMULTIPLIED image flag.
