Public Types | Public Member Functions | Static Public Member Functions | Friends

QGLShader Class Reference

Search for all occurrences

Detailed Description

Definition at line 62 of file qglshaderprogram.h.

#include <qglshaderprogram.h>

Inheritance diagram for QGLShader:
Inheritance graph
[legend]

List of all members.

Public Types

enum   ShaderTypeBit { Vertex = 0x0001, Fragment = 0x0002, Geometry = 0x0004 }

Public Member Functions

  QGLShader (QGLShader::ShaderType type, QObject *parent=0)
  QGLShader (QGLShader::ShaderType type, const QGLContext *context, QObject *parent=0)
virtual  ~QGLShader ()
QGLShader::ShaderType  shaderType () const
bool  compileSourceCode (const char *source)
bool  compileSourceCode (const QByteArray &source)
bool  compileSourceCode (const QString &source)
bool  compileSourceFile (const QString &fileName)
QByteArray  sourceCode () const
bool  isCompiled () const
QString  log () const
GLuint  shaderId () const

Static Public Member Functions

static bool  hasOpenGLShaders (ShaderType type, const QGLContext *context=0)

Friends

class  QGLShaderProgram

Member Enumeration Documentation

Enumerator:
Vertex 
Fragment 
Geometry 

Definition at line 66 of file qglshaderprogram.h.

    {
        Vertex          = 0x0001,
        Fragment        = 0x0002,
        Geometry        = 0x0004
    };

Constructor & Destructor Documentation

QGLShader ( QGLShader::ShaderType  type,
QObject parent = 0 
) [explicit]
QGLShader ( QGLShader::ShaderType  type,
const QGLContext context,
QObject parent = 0 
)
virtual ~QGLShader ( ) [virtual]

Member Function Documentation

QGLShader::ShaderType shaderType ( ) const
bool compileSourceCode ( const char *  source )
bool compileSourceCode ( const QByteArray source )
bool compileSourceCode ( const QString source )
bool compileSourceFile ( const QString fileName )
QByteArray sourceCode ( ) const
bool isCompiled ( ) const
QString log ( ) const
GLuint shaderId ( ) const
static bool hasOpenGLShaders ( ShaderType  type,
const QGLContext context = 0 
) [static]

Friends And Related Function Documentation

friend class QGLShaderProgram [friend]

Definition at line 95 of file qglshaderprogram.h.


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

QGLShader QGLShader QGLShader QGLShader QGLShader QGLShader QGLShader QGLShader QGLShader QGLShader
QGLShader QGLShader QGLShader QGLShader QGLShader QGLShader QGLShader QGLShader QGLShader QGLShader