krita/ui

KisOpenGLFragmentShader Class Reference

An encapsulation of an OpenGL Shading Language fragment shader object. More...

#include <kis_opengl_fragment_shader.h>

Inheritance diagram for KisOpenGLFragmentShader:

List of all members.

Static Public Member Functions

static KisOpenGLFragmentShader file (const QString &sourceCodeFilename)
static KisOpenGLFragmentShader string (const char *sourceCodeString)
static KisOpenGLFragmentShader string (const QString &sourceCodeString)

Protected Member Functions

 KisOpenGLFragmentShader ()

Detailed Description

An encapsulation of an OpenGL Shading Language fragment shader object.

Definition at line 34 of file kis_opengl_fragment_shader.h.


Constructor & Destructor Documentation

KisOpenGLFragmentShader::KisOpenGLFragmentShader (  )  [protected]

Definition at line 38 of file kis_opengl_fragment_shader.cpp.


Member Function Documentation

KisOpenGLFragmentShader KisOpenGLFragmentShader::file ( const QString sourceCodeFilename  )  [static]

Loads the shader source code from the given file, which will be searched for in the 'kis_shaders' resource directory (krita/data/shaders).

Refer to KisOpenGLShader for more information.

Parameters:
sourceCodeFilename the file to read the source code from

Definition at line 24 of file kis_opengl_fragment_shader.cpp.

static KisOpenGLFragmentShader KisOpenGLFragmentShader::string ( const char *  sourceCodeString  )  [static]

Loads the shader source code from the given char* string.

Parameters:
sourceCodeString the source string to load from
KisOpenGLFragmentShader KisOpenGLFragmentShader::string ( const QString sourceCodeString  )  [static]

Loads the shader source code from the given QString.

Parameters:
sourceCodeStrings the source string to load from

Definition at line 31 of file kis_opengl_fragment_shader.cpp.


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