SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
qsgpremultiply.h File Reference
#include <QtGlobal>
Include dependency graph for qsgpremultiply.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Render
 

Functions

quint8 OpenSWMM::Render::premul (quint8 c, quint8 a)
 

Detailed Description

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Premultiplied-alpha helper shared by the QSG map renderers (terrain mesh, 2D results, 1D network), which all emit vertex colours into QSGVertexColorMaterial.

Qt-Core-only so it can be unit-tested headlessly — see tests/unit/test_qsgpremultiply.cpp.