Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
Shader Class Reference

#include <shaders.h>

Inheritance diagram for Shader:
Inheritance graph
[legend]

List of all members.

Public Types

enum  ShaderType { VERTEX, FRAGMENT, GEOMETRY }

Public Member Functions

bool Compile (void)
void Del (void)
void Gen (void)
std::string InfoLog (void)
bool IsCompiled (void)
bool LoadSource (const char *fileName)
void SetSource (const char *src)
 Shader (void)
virtual ShaderType Type (void) const =0

Protected Types

enum  { SOURCE_DIRTY }

Protected Member Functions

void DoBind (void)
void DoUnbind (void)

Protected Attributes

bool compiled
unsigned int flags
std::string source

Detailed Description

Definition at line 38 of file shaders.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
SOURCE_DIRTY 

Definition at line 148 of file shaders.h.

Enumerator:
VERTEX 
FRAGMENT 
GEOMETRY 

Definition at line 41 of file shaders.h.


Constructor & Destructor Documentation

Shader::Shader ( void  ) [inline]

Definition at line 48 of file shaders.h.


Member Function Documentation

bool Shader::Compile ( void  ) [inline]

Definition at line 121 of file shaders.h.

void Shader::Del ( void  ) [inline, virtual]

Implements GLObject.

Definition at line 69 of file shaders.h.

void Shader::DoBind ( void  ) [inline, protected, virtual]

Implements Bindable.

Definition at line 157 of file shaders.h.

void Shader::DoUnbind ( void  ) [inline, protected, virtual]

Implements Bindable.

Definition at line 161 of file shaders.h.

void Shader::Gen ( void  ) [inline, virtual]

Implements GLObject.

Definition at line 55 of file shaders.h.

std::string Shader::InfoLog ( void  ) [inline]

Definition at line 136 of file shaders.h.

bool Shader::IsCompiled ( void  ) [inline]

Definition at line 131 of file shaders.h.

bool Shader::LoadSource ( const char *  fileName) [inline]

Definition at line 91 of file shaders.h.

void Shader::SetSource ( const char *  src) [inline]

Definition at line 78 of file shaders.h.

virtual ShaderType Shader::Type ( void  ) const [pure virtual]

Member Data Documentation

bool Shader::compiled [protected]

Definition at line 155 of file shaders.h.

unsigned int Shader::flags [protected]

Definition at line 154 of file shaders.h.

std::string Shader::source [protected]

Definition at line 153 of file shaders.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:39:02