QMatShader Class

Open cv matrix shader. More...

Header: #include <QMatShader>

Public Functions

QMatShader()
QList<QByteArray> attributes() const
const char *fragmentShader() const
bool loadTexture(QMat *mat, int index, bool linearFilter = true)
void resolveUniforms()
void updateState(const QMatState *state, const QMatState *oldState)
const char *vertexShader() const

Detailed Description

Open cv matrix shader.

Member Function Documentation

QMatShader::QMatShader()

QMatShader constructor

QList<QByteArray> QMatShader::attributes() const

Returns the gl program attributes.

const char *QMatShader::fragmentShader() const

Returns the fragment shader.

bool QMatShader::loadTexture(QMat *mat, int index, bool linearFilter = true)

Loads a matrix texture into the gpu program. Returns true on success, false otherwise.

Parameters: mat index linearFilter

void QMatShader::resolveUniforms()

Resolves textureId uniform.

void QMatShader::updateState(const QMatState *state, const QMatState *oldState)

Loads the matrixes texture.

Parameters: state oldState

const char *QMatShader::vertexShader() const

Returns the vertex shader