Miam-Player  0.8.0
A nice music player
QtAV::DynamicShaderObject Class Reference

The DynamicShaderObject class Able to set custom shader code. More...

#include <VideoShaderObject.h>

Inheritance diagram for QtAV::DynamicShaderObject:
QtAV::VideoShaderObject QtAV::VideoShader

Signals

void headerChanged ()
 
void sampleChanged ()
 
void postProcessChanged ()
 

Public Member Functions

 DynamicShaderObject (QObject *parent=0)
 
QString header () const
 
void setHeader (const QString &text)
 
QString sample () const
 
void setSample (const QString &text)
 
QString postProcess () const
 
void setPostProcess (const QString &text)
 
- Public Member Functions inherited from QtAV::VideoShaderObject
 VideoShaderObject (QObject *parent=0)
 
- Public Member Functions inherited from QtAV::VideoShader
 VideoShader ()
 
virtual ~VideoShader ()
 
virtual char const *const * attributeNames () const
 attributeNames Array must end with null. More...
 
virtual const char * vertexShader () const
 vertexShader mvp uniform: u_Matrix Vertex shader in: a_Position, a_TexCoordsN (see attributeNames()) Vertex shader out: v_TexCoordsN More...
 
virtual const char * fragmentShader () const
 
virtual void initialize (QOpenGLShaderProgram *shaderProgram=0)
 initialize More...
 
int uniformLocation (const char *name) const
 
int textureLocationCount () const
 textureLocationCount number of texture locations is 1: packed RGB number of channels: yuv or plannar RGB More...
 
int textureLocation (int index) const
 
int matrixLocation () const
 
int colorMatrixLocation () const
 
int opacityLocation () const
 
int channelMapLocation () const
 
int texelSizeLocation () const
 
int textureSizeLocation () const
 
VideoFormat videoFormat () const
 
int textureTarget () const
 
QOpenGLShaderProgram * program ()
 
bool update (VideoMaterial *material)
 update Upload textures, setup uniforms before rendering. More...
 

Protected Member Functions

 DynamicShaderObject (DynamicShaderObjectPrivate &d, QObject *parent=0)
 
- Protected Member Functions inherited from QtAV::VideoShaderObject
 VideoShaderObject (VideoShaderObjectPrivate &d, QObject *parent=0)
 
bool event (QEvent *event) Q_DECL_OVERRIDE
 
- Protected Member Functions inherited from QtAV::VideoShader
void rebuildLater ()
 rebuild shader program before next rendering. call this if shader code is updated More...
 
 VideoShader (VideoShaderPrivate &d)
 

Properties

QString header
 
QString sample
 
QString postProcess
 

Detailed Description

The DynamicShaderObject class Able to set custom shader code.

Constructor & Destructor Documentation

QtAV::DynamicShaderObject::DynamicShaderObject ( QObject *  parent = 0)
QtAV::DynamicShaderObject::DynamicShaderObject ( DynamicShaderObjectPrivate &  d,
QObject *  parent = 0 
)
protected

Member Function Documentation

QString QtAV::DynamicShaderObject::header ( ) const
void QtAV::DynamicShaderObject::headerChanged ( )
signal
QString QtAV::DynamicShaderObject::postProcess ( ) const
void QtAV::DynamicShaderObject::postProcessChanged ( )
signal
QString QtAV::DynamicShaderObject::sample ( ) const
void QtAV::DynamicShaderObject::sampleChanged ( )
signal
void QtAV::DynamicShaderObject::setHeader ( const QString &  text)
void QtAV::DynamicShaderObject::setPostProcess ( const QString &  text)
void QtAV::DynamicShaderObject::setSample ( const QString &  text)

Property Documentation

QString QtAV::DynamicShaderObject::header
readwrite
QString QtAV::DynamicShaderObject::postProcess
readwrite
QString QtAV::DynamicShaderObject::sample
readwrite

The documentation for this class was generated from the following file: