Class QAccelPlot::GradientTexture¶
ClassList > QAccelPlot > GradientTexture
Cached one-dimensional texture used by gradient materials.
#include <GradientTexture.hpp>
Public Functions¶
| Type | Name |
|---|---|
| GradientTexture () = default |
|
| GradientTexture (const GradientTexture &) = delete |
|
| void | commit (QSGMaterialShader::RenderState & state, QSGTexture ** texture) Commits the texture for the sampler being updated. |
| qint64 | comparisonKey () const Returns the scene-graph comparison key for the uploaded texture, or zero when no texture exists. |
| GradientTexture & | operator= (const GradientTexture &) = delete |
| void | upload (QQuickWindow * window, const std::vector< GradientStopData > & stops) Updates the 256-sample texture when stops changed. |
| ~GradientTexture () |
Public Static Functions¶
| Type | Name |
|---|---|
| const std::vector< GradientStopData > & | neutralStops () Returns a plain white ramp that keeps the sampler valid while a shader maps no values. |
Public Functions Documentation¶
function GradientTexture¶
function GradientTexture¶
function commit¶
Commits the texture for the sampler being updated.
void QAccelPlot::GradientTexture::commit (
QSGMaterialShader::RenderState & state,
QSGTexture ** texture
)
function comparisonKey¶
Returns the scene-graph comparison key for the uploaded texture, or zero when no texture exists.
function operator=¶
function upload¶
Updates the 256-sample texture when stops changed.
void QAccelPlot::GradientTexture::upload (
QQuickWindow * window,
const std::vector< GradientStopData > & stops
)
function ~GradientTexture¶
Public Static Functions Documentation¶
function neutralStops¶
Returns a plain white ramp that keeps the sampler valid while a shader maps no values.
The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/materials/GradientTexture.hpp