Skip to content

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

QAccelPlot::GradientTexture::GradientTexture () = default

function GradientTexture

QAccelPlot::GradientTexture::GradientTexture (
    const GradientTexture &
) = delete

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.

qint64 QAccelPlot::GradientTexture::comparisonKey () const


function operator=

GradientTexture & QAccelPlot::GradientTexture::operator= (
    const GradientTexture &
) = delete

function upload

Updates the 256-sample texture when stops changed.

void QAccelPlot::GradientTexture::upload (
    QQuickWindow * window,
    const std::vector< GradientStopData > & stops
) 


function ~GradientTexture

QAccelPlot::GradientTexture::~GradientTexture () 

Public Static Functions Documentation

function neutralStops

Returns a plain white ramp that keeps the sampler valid while a shader maps no values.

static const std::vector< GradientStopData > & QAccelPlot::GradientTexture::neutralStops () 



The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/materials/GradientTexture.hpp