eXperiment robotics framework

GLSLShader Class Reference

#include <GLSLShader.hpp>

List of all members.

Public Member Functions

 GLSLShader (const std::string &filename, GLenum shaderType=GL_VERTEX_SHADER)
 GLSLShader (GLenum shaderType=GL_VERTEX_SHADER)
 ~GLSLShader ()
void compile ()
bool isCompiled () const
void getShaderLog (std::string &log) const
void getShaderSource (std::string &shader) const
void setShaderSource (std::string &code)
GLuint getHandle () const
void getParameter (GLenum param, GLint *data) const

Private Member Functions

char * readShader (const std::string &filename)

Private Attributes

bool compiled_
GLint handle_


Detailed Description

Definition at line 7 of file GLSLShader.hpp.


Constructor & Destructor Documentation

GLSLShader::GLSLShader ( const std::string &  filename,
GLenum  shaderType = GL_VERTEX_SHADER 
)

GLSLShader::GLSLShader ( GLenum  shaderType = GL_VERTEX_SHADER  ) 

GLSLShader::~GLSLShader (  ) 


Member Function Documentation

void GLSLShader::compile (  ) 

bool GLSLShader::isCompiled (  )  const

void GLSLShader::getShaderLog ( std::string &  log  )  const

void GLSLShader::getShaderSource ( std::string &  shader  )  const

void GLSLShader::setShaderSource ( std::string &  code  ) 

GLuint GLSLShader::getHandle (  )  const

void GLSLShader::getParameter ( GLenum  param,
GLint *  data 
) const

char* GLSLShader::readShader ( const std::string &  filename  )  [private]


Member Data Documentation

bool GLSLShader::compiled_ [private]

Definition at line 24 of file GLSLShader.hpp.

GLint GLSLShader::handle_ [private]

Definition at line 25 of file GLSLShader.hpp.


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

The miarn project - written by Joao Xavier