moGL  travis-test-3
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ core spec
 All Classes Namespaces Files Functions Variables Defines
Public Member Functions
mogl::Shader Class Reference

#include <shader.hpp>

Inheritance diagram for mogl::Shader:
Inheritance graph
[legend]
Collaboration diagram for mogl::Shader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Shader (GLenum type)
 ~Shader ()
 Shader (const Shader &other)
Shaderoperator= (const Shader &other)
bool compile (const std::string &source)
bool compile (std::istream &sourceFile)
const std::string getSource () const
GLenum getType () const
const std::string getLog () const
void get (GLenum property, GLint *value) const
GLint get (GLenum property) const
bool isCompiled () const
bool isHandleValid () const override final

Constructor & Destructor Documentation

mogl::Shader::Shader ( GLenum  type) [inline]
mogl::Shader::~Shader ( ) [inline]
mogl::Shader::Shader ( const Shader other)

Member Function Documentation

bool mogl::Shader::compile ( const std::string &  source) [inline]
bool mogl::Shader::compile ( std::istream &  sourceFile) [inline]
void mogl::Shader::get ( GLenum  property,
GLint *  value 
) const [inline]
GLint mogl::Shader::get ( GLenum  property) const [inline]
const std::string mogl::Shader::getLog ( ) const [inline]
const std::string mogl::Shader::getSource ( ) const [inline]
GLenum mogl::Shader::getType ( ) const [inline]
bool mogl::Shader::isCompiled ( ) const [inline]
bool mogl::Shader::isHandleValid ( ) const [inline, override, virtual]
Shader& mogl::Shader::operator= ( const Shader other)

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Defines