#include <GLSLShader.h>
Public Types | |
| enum | Type { VERTEX, FRAGMENT } |
| type of shader (vertex or fragment, later maybe geometry shader with GF8800+) More... | |
| typedef std::list < std::string > | defines_list |
| a list of strings with shader preprocessor defines | |
Public Member Functions | |
| GLSLShader (const char *filename, Type stype, const defines_list &dl=defines_list()) | |
| ~GLSLShader () | |
| unsigned int | getId () |
Protected Attributes | |
| unsigned int | id_ |
Private Member Functions | |
| GLSLShader (const GLSLShader &) | |
| GLSLShader & | operator= (const GLSLShader &) |
Definition at line 27 of file GLSLShader.h.
| typedef std::list<std::string> GLSLShader::defines_list |
| enum GLSLShader::Type |
type of shader (vertex or fragment, later maybe geometry shader with GF8800+)
Definition at line 34 of file GLSLShader.h.
| GLSLShader::GLSLShader | ( | const char * | filename, | |
| Type | stype, | |||
| const defines_list & | dl = defines_list() | |||
| ) |
Definition at line 26 of file GLSLShader.cpp.
References DIALOG_ASSERT, S3D::dialogExit(), S3D::formatStringBuffer(), FRAGMENT, GL_COMPILE_STATUS, GL_FALSE, GL_FRAGMENT_SHADER, GL_INFO_LOG_LENGTH, GL_VERTEX_SHADER, glCompileShader, glCreateShader, glGetShaderInfoLog, glGetShaderiv, glShaderSource, GLStateExtension::hasShaders(), id_, and VERTEX.
| GLSLShader::~GLSLShader | ( | ) |
| GLSLShader::GLSLShader | ( | const GLSLShader & | ) | [private] |
| unsigned int GLSLShader::getId | ( | ) | [inline] |
Definition at line 44 of file GLSLShader.h.
References id_.
Referenced by GLSLProgram::attach(), and GLSLProgram::detach().
| GLSLShader& GLSLShader::operator= | ( | const GLSLShader & | ) | [private] |
unsigned int GLSLShader::id_ [protected] |
1.5.3