![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
#include <banner_shader_config.h>
Signals | |
| void | timeChanged () |
| void | aspectChanged () |
| void | modeAChanged () |
| void | speedAChanged () |
| void | seedAChanged () |
| void | modeBChanged () |
| void | speedBChanged () |
| void | seedBChanged () |
| void | frontIsAChanged () |
| void | colorAChanged () |
| void | colorBChanged () |
| void | accentChanged () |
| void | logoVisibleChanged () |
| void | logoGlowChanged () |
Public Member Functions | |
| BannerShaderConfig (QObject *parent=nullptr) | |
| qreal | time () const |
| void | setTime (qreal v) |
| qreal | aspect () const |
| void | setAspect (qreal v) |
| qreal | modeA () const |
| void | setModeA (qreal v) |
| qreal | speedA () const |
| void | setSpeedA (qreal v) |
| qreal | seedA () const |
| void | setSeedA (qreal v) |
| qreal | modeB () const |
| void | setModeB (qreal v) |
| qreal | speedB () const |
| void | setSpeedB (qreal v) |
| qreal | seedB () const |
| void | setSeedB (qreal v) |
| bool | frontIsA () const |
| void | setFrontIsA (bool v) |
| QColor | colorA () const |
| void | setColorA (const QColor &c) |
| QColor | colorB () const |
| void | setColorB (const QColor &c) |
| QColor | accent () const |
| void | setAccent (const QColor &c) |
| bool | logoVisible () const |
| void | setLogoVisible (bool v) |
| qreal | logoGlow () const |
| void | setLogoGlow (qreal v) |
Properties | |
| qreal | time |
| qreal | aspect |
| qreal | modeA |
| qreal | speedA |
| qreal | seedA |
| qreal | modeB |
| qreal | speedB |
| qreal | seedB |
| bool | frontIsA |
| QColor | colorA |
| QColor | colorB |
| QColor | accent |
| bool | logoVisible |
| qreal | logoGlow |
Private Attributes | |
| qreal | m_time = 0.0 |
| qreal | m_aspect = 16.0 / 9.0 |
| qreal | m_modeA = 0.0 |
| qreal | m_speedA = 1.0 |
| qreal | m_seedA = 0.0 |
| qreal | m_modeB = 0.0 |
| qreal | m_speedB = 1.0 |
| qreal | m_seedB = 0.0 |
| bool | m_frontIsA = true |
| QColor | m_colorA {0x1A, 0x1A, 0x20} |
| QColor | m_colorB {0x0E, 0x0E, 0x12} |
| QColor | m_accent {0x8B, 0xDD, 0x6B} |
| bool | m_logoVisible = false |
| qreal | m_logoGlow = 1.0 |
Uniform values fed to brand_banner.frag, exposed to QML as the "bannerConfig" context property.
Two independent "banks" (A/B) each carry their own mode/speed/seed so BrandBanner.qml can render both simultaneously and crossfade between them via opacity – see frontIsA. The shared palette (colorA/colorB/ accent) and clock (time/aspect) apply to both banks identically, since only the foreground motif changes between onboarding pages, never the brand palette.
Deliberately plain property (not required property) on the QML side – a required-property shadowing bug bit the home-screen particle background before, and there's no reason to reintroduce that risk here.
|
inlineexplicit |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |