Inviwo  0.9.10.1
Inviwo documentation
inviwo::ShaderType Class Reference

Encapsulate a GLenum shader type, and related information. More...

#include <shadertype.h>

Public Member Functions

 ShaderType (GLenum type)
 
 ShaderType (const ShaderType &)=default
 
ShaderTypeoperator= (const ShaderType &)=default
 
 operator GLenum () const
 
 operator bool () const
 
std::string extension () const
 

Static Public Member Functions

static std::string extension (const ShaderType &type)
 
static ShaderType get (const std::string &ext)
 

Static Public Attributes

static ShaderType Vertex = ShaderType(GL_VERTEX_SHADER)
 
static ShaderType Geometry = ShaderType(GL_GEOMETRY_SHADER)
 
static ShaderType Fragment = ShaderType(GL_FRAGMENT_SHADER)
 
static ShaderType TessellationControl = ShaderType(GL_TESS_CONTROL_SHADER)
 
static ShaderType TessellationEvaluation = ShaderType(GL_TESS_EVALUATION_SHADER)
 
static ShaderType Compute = ShaderType(GL_COMPUTE_SHADER)
 

Detailed Description

Encapsulate a GLenum shader type, and related information.


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