MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / drawShadow

Method drawShadow

src/Geoscape/Globe.cpp:1176–1187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1174
1175
1176void Globe::drawShadow()
1177{
1178 ShaderMove<Cord> earth = ShaderMove<Cord>(_earthData[_zoom], getWidth(), getHeight());
1179 ShaderRepeat<Sint16> noise = ShaderRepeat<Sint16>(_randomNoiseData, static_data.random_surf_size, static_data.random_surf_size);
1180
1181 earth.setMove(_cenX-getWidth()/2, _cenY-getHeight()/2);
1182
1183 lock();
1184 ShaderDraw<CreateShadow>(ShaderSurface(this), earth, ShaderScalar(getSunDirection(_cenLon, _cenLat)), noise);
1185 unlock();
1186
1187}
1188
1189
1190void Globe::XuLine(Surface* surface, Surface* src, double x1, double y1, double x2, double y2, int shade)

Callers

nothing calls this directly

Calls 3

ShaderSurfaceFunction · 0.85
ShaderScalarFunction · 0.85
setMoveMethod · 0.80

Tested by

no test coverage detected