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 36 of file shaders.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
SOURCE_DIRTY 

Definition at line 144 of file shaders.h.

Enumerator:
VERTEX 
FRAGMENT 
GEOMETRY 

Definition at line 37 of file shaders.h.


Constructor & Destructor Documentation

Shader::Shader ( void   )  [inline]

Definition at line 44 of file shaders.h.


Member Function Documentation

bool Shader::Compile ( void   )  [inline]

Definition at line 117 of file shaders.h.

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

Implements GLObject.

Definition at line 65 of file shaders.h.

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

Implements Bindable.

Definition at line 153 of file shaders.h.

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

Implements Bindable.

Definition at line 157 of file shaders.h.

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

Implements GLObject.

Definition at line 51 of file shaders.h.

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

Definition at line 132 of file shaders.h.

bool Shader::IsCompiled ( void   )  [inline]

Definition at line 127 of file shaders.h.

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

Definition at line 87 of file shaders.h.

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

Definition at line 74 of file shaders.h.

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

Member Data Documentation

bool Shader::compiled [protected]

Definition at line 151 of file shaders.h.

unsigned int Shader::flags [protected]

Definition at line 150 of file shaders.h.

std::string Shader::source [protected]

Definition at line 149 of file shaders.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:22:22 2013