Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Member Functions | Friends
glw::Shader Class Reference

#include <shader.h>

Inheritance diagram for glw::Shader:
Inheritance graph
[legend]

List of all members.

Public Types

typedef Object BaseType
typedef Shader ThisType

Public Member Functions

bool isCompiled (void) const
const std::string & log (void) const
const std::string & source (void) const
virtual ~Shader (void)

Protected Member Functions

void compile (const std::string &source)
bool create (const ShaderArguments &args)
virtual void doDestroy (void)
virtual bool doIsValid (void) const
 Shader (Context *ctx)
virtual GLenum shaderType (void) const =0

Protected Attributes

bool m_compiled
std::string m_log
std::string m_source

Static Private Member Functions

static std::string getInfoLog (GLuint Shader)

Friends

class Context

Detailed Description

Definition at line 34 of file shader.h.


Member Typedef Documentation

Reimplemented from glw::Object.

Reimplemented in glw::FragmentShader, glw::GeometryShader, and glw::VertexShader.

Definition at line 40 of file shader.h.

Reimplemented from glw::Object.

Reimplemented in glw::FragmentShader, glw::GeometryShader, and glw::VertexShader.

Definition at line 41 of file shader.h.


Constructor & Destructor Documentation

virtual glw::Shader::~Shader ( void  ) [inline, virtual]

Definition at line 43 of file shader.h.

glw::Shader::Shader ( Context ctx) [inline, protected]

Definition at line 69 of file shader.h.


Member Function Documentation

void glw::Shader::compile ( const std::string &  source) [inline, protected]

Definition at line 100 of file shader.h.

bool glw::Shader::create ( const ShaderArguments args) [inline, protected]

Definition at line 78 of file shader.h.

virtual void glw::Shader::doDestroy ( void  ) [inline, protected, virtual]

Implements glw::Object.

Definition at line 87 of file shader.h.

virtual bool glw::Shader::doIsValid ( void  ) const [inline, protected, virtual]

Implements glw::Object.

Definition at line 95 of file shader.h.

static std::string glw::Shader::getInfoLog ( GLuint  Shader) [inline, static, private]

Definition at line 131 of file shader.h.

bool glw::Shader::isCompiled ( void  ) const [inline]

Definition at line 58 of file shader.h.

const std::string& glw::Shader::log ( void  ) const [inline]

Definition at line 53 of file shader.h.

virtual GLenum glw::Shader::shaderType ( void  ) const [protected, pure virtual]
const std::string& glw::Shader::source ( void  ) const [inline]

Definition at line 48 of file shader.h.


Friends And Related Function Documentation

friend class Context [friend]

Reimplemented from glw::Object.

Reimplemented in glw::FragmentShader, glw::GeometryShader, and glw::VertexShader.

Definition at line 36 of file shader.h.


Member Data Documentation

bool glw::Shader::m_compiled [protected]

Definition at line 67 of file shader.h.

std::string glw::Shader::m_log [protected]

Definition at line 66 of file shader.h.

std::string glw::Shader::m_source [protected]

Definition at line 65 of file shader.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:07