Changeset View
Changeset View
Standalone View
Standalone View
effects/cube/cube.cpp
Show First 20 Lines • Show All 391 Lines • ▼ Show 20 Line(s) | 391 | if (verticalAnimationState != VerticalAnimationState::None) { | |||
---|---|---|---|---|---|
392 | verticalTimeLine.update(std::chrono::milliseconds(time)); | 392 | verticalTimeLine.update(std::chrono::milliseconds(time)); | ||
393 | } | 393 | } | ||
394 | rotateCube(); | 394 | rotateCube(); | ||
395 | } | 395 | } | ||
396 | } | 396 | } | ||
397 | effects->prePaintScreen(data, time); | 397 | effects->prePaintScreen(data, time); | ||
398 | } | 398 | } | ||
399 | 399 | | |||
400 | void CubeEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data) | 400 | void CubeEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) | ||
401 | { | 401 | { | ||
402 | if (activated) { | 402 | if (activated) { | ||
403 | QRect rect = effects->clientArea(FullArea, activeScreen, effects->currentDesktop()); | 403 | QRect rect = effects->clientArea(FullArea, activeScreen, effects->currentDesktop()); | ||
404 | 404 | | |||
405 | // background | 405 | // background | ||
406 | float clearColor[4]; | 406 | float clearColor[4]; | ||
407 | glGetFloatv(GL_COLOR_CLEAR_VALUE, clearColor); | 407 | glGetFloatv(GL_COLOR_CLEAR_VALUE, clearColor); | ||
408 | glClearColor(backgroundColor.redF(), backgroundColor.greenF(), backgroundColor.blueF(), 1.0); | 408 | glClearColor(backgroundColor.redF(), backgroundColor.greenF(), backgroundColor.blueF(), 1.0); | ||
▲ Show 20 Lines • Show All 1342 Lines • Show Last 20 Lines |