Changeset View
Changeset View
Standalone View
Standalone View
effects/coverswitch/coverswitch.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 41 | CoverSwitchEffect::CoverSwitchEffect() | |||
---|---|---|---|---|---|
49 | , zPosition(900.0) | 49 | , zPosition(900.0) | ||
50 | , scaleFactor(0.0) | 50 | , scaleFactor(0.0) | ||
51 | , direction(Left) | 51 | , direction(Left) | ||
52 | , selected_window(0) | 52 | , selected_window(0) | ||
53 | , captionFrame(NULL) | 53 | , captionFrame(NULL) | ||
54 | , primaryTabBox(false) | 54 | , primaryTabBox(false) | ||
55 | , secondaryTabBox(false) | 55 | , secondaryTabBox(false) | ||
56 | { | 56 | { | ||
57 | initConfig<CoverSwitchConfig>(); | ||||
57 | reconfigure(ReconfigureAll); | 58 | reconfigure(ReconfigureAll); | ||
58 | 59 | | |||
59 | // Caption frame | 60 | // Caption frame | ||
60 | captionFont.setBold(true); | 61 | captionFont.setBold(true); | ||
61 | captionFont.setPointSize(captionFont.pointSize() * 2); | 62 | captionFont.setPointSize(captionFont.pointSize() * 2); | ||
62 | 63 | | |||
63 | if (effects->compositingType() == OpenGL2Compositing) { | 64 | if (effects->compositingType() == OpenGL2Compositing) { | ||
64 | m_reflectionShader = ShaderManager::instance()->generateShaderFromResources(ShaderTrait::MapTexture, QString(), QStringLiteral("coverswitch-reflection.glsl")); | 65 | m_reflectionShader = ShaderManager::instance()->generateShaderFromResources(ShaderTrait::MapTexture, QString(), QStringLiteral("coverswitch-reflection.glsl")); | ||
▲ Show 20 Lines • Show All 935 Lines • Show Last 20 Lines |