Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsgvivantevideomaterialshader.h
Go to the documentation of this file.
1// Copyright (C) 2016 Pelagicore AG
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSGVIDEOMATERIALSHADER_VIVANTE_H
5#define QSGVIDEOMATERIALSHADER_VIVANTE_H
6
7#include <QSGMaterial>
8
10{
11public:
13
15 QSGMaterial *oldMaterial) override;
17 QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override;
18
19 void setUVScale(float uScale, float vScale);
20
21private:
22 float mUScale;
23 float mVScale;
24 bool mNewUVScale;
25};
26
27#endif // QSGVIDEOMATERIALSHADER_VIVANTE_H
Encapsulates the current rendering state during a call to QSGMaterialShader::updateUniformData() and ...
The QSGMaterialShader class represents a graphics API independent shader program.
The QSGMaterial class encapsulates rendering state for a shader program.
Definition qsgmaterial.h:15
\inmodule QtQuick
Definition qsgtexture.h:20
void updateSampledImage(RenderState &state, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override
This function is called by the scene graph to prepare use of sampled images in the shader,...
bool updateUniformData(RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override
This function is called by the scene graph to get the contents of the shader program's uniform buffer...
void setUVScale(float uScale, float vScale)
else opt state
[0]
GLenum GLuint texture