Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
BannerShaderConfig Class Reference

#include <banner_shader_config.h>

Inheritance diagram for BannerShaderConfig:
[legend]
Collaboration diagram for BannerShaderConfig:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ BannerShaderConfig()

BannerShaderConfig::BannerShaderConfig ( QObject * parent = nullptr)
inlineexplicit
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ accent()

QColor BannerShaderConfig::accent ( ) const
inline

◆ accentChanged

void BannerShaderConfig::accentChanged ( )
signal
Here is the caller graph for this function:

◆ aspect()

qreal BannerShaderConfig::aspect ( ) const
inline

◆ aspectChanged

void BannerShaderConfig::aspectChanged ( )
signal
Here is the caller graph for this function:

◆ colorA()

QColor BannerShaderConfig::colorA ( ) const
inline

◆ colorAChanged

void BannerShaderConfig::colorAChanged ( )
signal
Here is the caller graph for this function:

◆ colorB()

QColor BannerShaderConfig::colorB ( ) const
inline

◆ colorBChanged

void BannerShaderConfig::colorBChanged ( )
signal
Here is the caller graph for this function:

◆ frontIsA()

bool BannerShaderConfig::frontIsA ( ) const
inline

◆ frontIsAChanged

void BannerShaderConfig::frontIsAChanged ( )
signal
Here is the caller graph for this function:

◆ logoGlow()

qreal BannerShaderConfig::logoGlow ( ) const
inline

◆ logoGlowChanged

void BannerShaderConfig::logoGlowChanged ( )
signal
Here is the caller graph for this function:

◆ logoVisible()

bool BannerShaderConfig::logoVisible ( ) const
inline

◆ logoVisibleChanged

void BannerShaderConfig::logoVisibleChanged ( )
signal
Here is the caller graph for this function:

◆ modeA()

qreal BannerShaderConfig::modeA ( ) const
inline

◆ modeAChanged

void BannerShaderConfig::modeAChanged ( )
signal
Here is the caller graph for this function:

◆ modeB()

qreal BannerShaderConfig::modeB ( ) const
inline

◆ modeBChanged

void BannerShaderConfig::modeBChanged ( )
signal
Here is the caller graph for this function:

◆ seedA()

qreal BannerShaderConfig::seedA ( ) const
inline

◆ seedAChanged

void BannerShaderConfig::seedAChanged ( )
signal
Here is the caller graph for this function:

◆ seedB()

qreal BannerShaderConfig::seedB ( ) const
inline

◆ seedBChanged

void BannerShaderConfig::seedBChanged ( )
signal
Here is the caller graph for this function:

◆ setAccent()

void BannerShaderConfig::setAccent ( const QColor & c)
inline
Here is the call graph for this function:

◆ setAspect()

void BannerShaderConfig::setAspect ( qreal v)
inline
Here is the call graph for this function:

◆ setColorA()

void BannerShaderConfig::setColorA ( const QColor & c)
inline
Here is the call graph for this function:

◆ setColorB()

void BannerShaderConfig::setColorB ( const QColor & c)
inline
Here is the call graph for this function:

◆ setFrontIsA()

void BannerShaderConfig::setFrontIsA ( bool v)
inline
Here is the call graph for this function:

◆ setLogoGlow()

void BannerShaderConfig::setLogoGlow ( qreal v)
inline
Here is the call graph for this function:

◆ setLogoVisible()

void BannerShaderConfig::setLogoVisible ( bool v)
inline
Here is the call graph for this function:

◆ setModeA()

void BannerShaderConfig::setModeA ( qreal v)
inline
Here is the call graph for this function:

◆ setModeB()

void BannerShaderConfig::setModeB ( qreal v)
inline
Here is the call graph for this function:

◆ setSeedA()

void BannerShaderConfig::setSeedA ( qreal v)
inline
Here is the call graph for this function:

◆ setSeedB()

void BannerShaderConfig::setSeedB ( qreal v)
inline
Here is the call graph for this function:

◆ setSpeedA()

void BannerShaderConfig::setSpeedA ( qreal v)
inline
Here is the call graph for this function:

◆ setSpeedB()

void BannerShaderConfig::setSpeedB ( qreal v)
inline
Here is the call graph for this function:

◆ setTime()

void BannerShaderConfig::setTime ( qreal v)
inline
Here is the call graph for this function:

◆ speedA()

qreal BannerShaderConfig::speedA ( ) const
inline

◆ speedAChanged

void BannerShaderConfig::speedAChanged ( )
signal
Here is the caller graph for this function:

◆ speedB()

qreal BannerShaderConfig::speedB ( ) const
inline

◆ speedBChanged

void BannerShaderConfig::speedBChanged ( )
signal
Here is the caller graph for this function:

◆ time()

qreal BannerShaderConfig::time ( ) const
inline

◆ timeChanged

void BannerShaderConfig::timeChanged ( )
signal
Here is the caller graph for this function:

Member Data Documentation

◆ m_accent

QColor BannerShaderConfig::m_accent {0x8B, 0xDD, 0x6B}
private

◆ m_aspect

qreal BannerShaderConfig::m_aspect = 16.0 / 9.0
private

◆ m_colorA

QColor BannerShaderConfig::m_colorA {0x1A, 0x1A, 0x20}
private

◆ m_colorB

QColor BannerShaderConfig::m_colorB {0x0E, 0x0E, 0x12}
private

◆ m_frontIsA

bool BannerShaderConfig::m_frontIsA = true
private

◆ m_logoGlow

qreal BannerShaderConfig::m_logoGlow = 1.0
private

◆ m_logoVisible

bool BannerShaderConfig::m_logoVisible = false
private

◆ m_modeA

qreal BannerShaderConfig::m_modeA = 0.0
private

◆ m_modeB

qreal BannerShaderConfig::m_modeB = 0.0
private

◆ m_seedA

qreal BannerShaderConfig::m_seedA = 0.0
private

◆ m_seedB

qreal BannerShaderConfig::m_seedB = 0.0
private

◆ m_speedA

qreal BannerShaderConfig::m_speedA = 1.0
private

◆ m_speedB

qreal BannerShaderConfig::m_speedB = 1.0
private

◆ m_time

qreal BannerShaderConfig::m_time = 0.0
private

Property Documentation

◆ accent

QColor BannerShaderConfig::accent
readwrite

◆ aspect

qreal BannerShaderConfig::aspect
readwrite

◆ colorA

QColor BannerShaderConfig::colorA
readwrite

◆ colorB

QColor BannerShaderConfig::colorB
readwrite

◆ frontIsA

bool BannerShaderConfig::frontIsA
readwrite

◆ logoGlow

qreal BannerShaderConfig::logoGlow
readwrite

◆ logoVisible

bool BannerShaderConfig::logoVisible
readwrite

◆ modeA

qreal BannerShaderConfig::modeA
readwrite

◆ modeB

qreal BannerShaderConfig::modeB
readwrite

◆ seedA

qreal BannerShaderConfig::seedA
readwrite

◆ seedB

qreal BannerShaderConfig::seedB
readwrite

◆ speedA

qreal BannerShaderConfig::speedA
readwrite

◆ speedB

qreal BannerShaderConfig::speedB
readwrite

◆ time

qreal BannerShaderConfig::time
readwrite

The documentation for this class was generated from the following file: