|
UFO: Alien Invasion
|
Functions to generate and render overlay for geoscape. More...

Go to the source code of this file.
Functions | |
| void | CP_DecreaseXVILevelEverywhere (void) |
| void | CP_ChangeXVILevel (const vec2_t pos, float factor) |
| Convert the pos into degrees and increase XVI there. | |
| void | CP_InitializeXVIOverlay (void) |
| Initialize XVI overlay on geoscape. | |
| void | CP_GetXVIMapDimensions (int *width, int *height) |
| int | CP_GetXVILevel (int x, int y) |
| void | CP_SetXVILevel (int x, int y, int value) |
| void | CP_InitializeRadarOverlay (bool source) |
| Initialize radar overlay on geoscape. | |
| void | CP_AddRadarCoverage (const vec2_t pos, float innerRadius, float outerRadius, bool source) |
| Add a radar coverage (base or aircraft) to radar overlay. | |
| void | CP_UploadRadarCoverage (void) |
| Smooth radar coverage. | |
Functions to generate and render overlay for geoscape.
Definition in file cp_overlay.h.
Add a radar coverage (base or aircraft) to radar overlay.
| [in] | pos | Position of the center of radar |
| [in] | innerRadius | Radius of the radar coverage |
| [in] | outerRadius | Radius of the outer radar coverage |
| [in] | source | True if we must update the source of the radar coverage, false if the copy must be updated. |
< Alpha of the inner radar range
< Alpha of the outer radar range
< current position (in pixel)
< Bounding box of the inner radar zone
< Bounding box of the outer radar zone
Definition at line 367 of file cp_overlay.cpp.
References CP_DrawRadarOverlayRow(), CP_GetCircleDeltaLongitude(), CP_SetMinMaxOverlayRows(), RADAR_HEIGHT, and torad.
Referenced by RADAR_DrawCoverage(), and RADAR_UpdateStaticRadarCoverage().
Convert the pos into degrees and increase XVI there.
| pos | The x/y-location in the flat XVI map |
| factor | The factor of the XVI raise |
Definition at line 257 of file cp_overlay.cpp.
References CP_IncreaseXVILevel(), XVI_HEIGHT, and XVI_WIDTH.
Referenced by CP_SpreadXVIAtPos().
x,y: current position (in pixel)
Definition at line 237 of file cp_overlay.cpp.
References CP_GetXVILevel(), CP_SetXVILevel(), CP_UploadXVI(), XVI_HEIGHT, and XVI_WIDTH.
Referenced by CP_ReduceXVIEverywhere().
Definition at line 71 of file cp_overlay.cpp.
References CP_XVIGetAlpha(), INITIAL_ALPHA_VALUE, XVI_HEIGHT, and XVI_WIDTH.
Referenced by CP_DecreaseXVILevelEverywhere(), CP_DrawXVIOverlayPixel(), CP_IncreaseXVILevel(), CP_UpdateNationXVIInfection(), and XVI_SaveXML().
Definition at line 52 of file cp_overlay.cpp.
References XVI_HEIGHT, and XVI_WIDTH.
Referenced by CP_UpdateNationXVIInfection(), and XVI_SaveXML().
| void CP_InitializeRadarOverlay | ( | bool | source | ) |
Initialize radar overlay on geoscape.
| [in] | source | Initialize the source texture if true: if you are updating base radar overlay. false if you are updating aircraft radar overlay (base radar overlay will be copied to aircraft radar overlay) |
Definition at line 292 of file cp_overlay.cpp.
References cgi, INITIAL_ALPHA_VALUE, RADAR_HEIGHT, and RADAR_WIDTH.
Referenced by RADAR_UpdateStaticRadarCoverage(), and RADAR_UpdateWholeRadarOverlay().
Initialize XVI overlay on geoscape.
Definition at line 269 of file cp_overlay.cpp.
References cgi, CP_UploadXVI(), XVI_HEIGHT, and XVI_WIDTH.
Referenced by CP_CampaignInit(), CP_InitStartup(), and XVI_LoadXML().
Definition at line 58 of file cp_overlay.cpp.
References CP_XVIGetAlpha(), INITIAL_ALPHA_VALUE, MAX_ALPHA_VALUE, XVI_HEIGHT, and XVI_WIDTH.
Referenced by CP_DecreaseXVILevelEverywhere(), CP_DrawXVIOverlayPixel(), and XVI_LoadXML().
Smooth radar coverage.
Definition at line 422 of file cp_overlay.cpp.
References cgi, RADAR_HEIGHT, and RADAR_WIDTH.
Referenced by RADAR_UpdateStaticRadarCoverage(), and RADAR_UpdateWholeRadarOverlay().