| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/opengl/gl2/shaderobject.h>

Public Member Functions | |
| VRS_TYPEINFO (ShaderObject, SharedObj) | |
| VRS_SERIALIZABLE (ShaderObject) | |
| ShaderObject (std::string source) | |
| bool | operator== (const ShaderObject &other) const |
| std::string | source () const |
| Receive the source code of a shader object. | |
| virtual GLenum | type () const |
Protected Member Functions | |
| ShaderObject () | |
| VRS::GL2::ShaderObject::ShaderObject | ( | std::string | source | ) | [inline] |
A shader object either represents a fragment shader object or vertex shader object.
| VRS::GL2::ShaderObject::ShaderObject | ( | ) | [inline, protected] |
| VRS::GL2::ShaderObject::VRS_TYPEINFO | ( | ShaderObject | , | |
| SharedObj | ||||
| ) |
| VRS::GL2::ShaderObject::VRS_SERIALIZABLE | ( | ShaderObject | ) |
| bool VRS::GL2::ShaderObject::operator== | ( | const ShaderObject & | other | ) | const [inline] |
| std::string VRS::GL2::ShaderObject::source | ( | ) | const |
Receive the source code of a shader object.
| virtual GLenum VRS::GL2::ShaderObject::type | ( | ) | const [virtual] |
The type of a shader object can either be GL_VERTEX_SHADER_ARB to denote a vertex shader objects or GL_FRAGMENT_SHADER_ARB for a fragment shader object. An assertion occurs if a shader objects of invalid type gets compiled for a shader program.
Reimplemented in VRS::GL2::FragmentShaderObject, VRS::GL2::GeometryShaderObject, and VRS::GL2::VertexShaderObject.