Magnum/GL/AbstractShaderProgram.h file

Class Magnum::GL::AbstractShaderProgram, macro MAGNUM_GL_ABSTRACTSHADERPROGRAM_SUBCLASS_DRAW_IMPLEMENTATION(), MAGNUM_GL_ABSTRACTSHADERPROGRAM_SUBCLASS_DISPATCH_IMPLEMENTATION()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::GL
OpenGL wrapping layer.

Classes

class Magnum::GL::AbstractShaderProgram
Base for shader program implementations.

Defines

#define MAGNUM_GL_ABSTRACTSHADERPROGRAM_SUBCLASS_DRAW_IMPLEMENTATION(...) new in Git master
AbstractShaderProgram subclass method chaining implementation for draws
#define MAGNUM_GL_ABSTRACTSHADERPROGRAM_SUBCLASS_DISPATCH_IMPLEMENTATION(...) new in Git master
AbstractShaderProgram subclass method chaining implementation for compute dispatch

Define documentation

#define MAGNUM_GL_ABSTRACTSHADERPROGRAM_SUBCLASS_DRAW_IMPLEMENTATION(...) new in Git master

AbstractShaderProgram subclass method chaining implementation for draws

Overrides all variants of AbstractShaderProgram::draw() and drawTransformFeedback() in given subclass to return a reference to that class type instead of AbstractShaderProgram, and additionally prevents accidental calls to AbstractShaderProgram::dispatchCompute(). See Subclassing workflow for more information.

#define MAGNUM_GL_ABSTRACTSHADERPROGRAM_SUBCLASS_DISPATCH_IMPLEMENTATION(...) new in Git master

AbstractShaderProgram subclass method chaining implementation for compute dispatch

Overrides AbstractShaderProgram::dispatchCompute() in given subclass to return a reference to that class type instead of AbstractShaderProgram, and additionally prevents accidental calls to AbstractShaderProgram::draw() and drawTransformFeedback(). See Subclassing workflow for more information.