iso::gl::Shader Class Reference

#include <iso_gl_shader.h>

List of all members.

Public Member Functions

 Shader (ShaderType pShaderType) throw (GLException)
 create shader
 ~Shader ()
 destructor
bool loaded () const
 return true if shader is loaded, false otherwise
bool compiled () const
 return true if shader is compiled, false otherwise
void compile () throw (GLException)
 compile shader
GLuint id () const
 return shader id
void load (base::String pFileName) throw (GLException)
 load shader source code
void destroy ()
 delete shader
void printInfoLog () const
 print shader info log

Protected Member Functions

 Shader () throw (GLException)
 default constructor

Protected Attributes

GLuint mId
ShaderType mType
 shader id
char * mSourceCode
 shader type
bool mLoaded
bool mCompiled


Constructor & Destructor Documentation

Shader::Shader ( ShaderType  pShaderType  )  throw (GLException)

create shader

Parameters:
pShaderType shader type

Shader::~Shader (  ) 

destructor

Shader::Shader (  )  throw (GLException) [protected]

default constructor


Member Function Documentation

bool iso::gl::Shader::loaded (  )  const [inline]

return true if shader is loaded, false otherwise

bool iso::gl::Shader::compiled (  )  const [inline]

return true if shader is compiled, false otherwise

void Shader::compile (  )  throw (GLException)

compile shader

GLuint Shader::id (  )  const

return shader id

Returns:
shader id

void Shader::load ( base::String  pFileName  )  throw (GLException)

load shader source code

Parameters:
pFileName source code file name
Remarks:
fails if file is not found
Returns:
true if file could be loaded, false otherwise

void Shader::destroy (  ) 

delete shader

void Shader::printInfoLog (  )  const

print shader info log


Member Data Documentation

GLuint iso::gl::Shader::mId [protected]

ShaderType iso::gl::Shader::mType [protected]

shader id

char* iso::gl::Shader::mSourceCode [protected]

shader type

bool iso::gl::Shader::mLoaded [protected]

bool iso::gl::Shader::mCompiled [protected]


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:01:56 2011 for iso_gl by  doxygen 1.5.1