version 3.3

VRS::GL2::ShaderObject Class Reference

#include <vrs/opengl/gl2/shaderobject.h>

Inheritance diagram for VRS::GL2::ShaderObject:

VRS::SharedObj VRS::Visitable VRS::GL2::FragmentShaderObject VRS::GL2::GeometryShaderObject VRS::GL2::VertexShaderObject

List of all members.

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 ()


Detailed Description

A shader object represent a single entity of shader program. Typically, two shader objects exist in a shader program, one vertex shader and one fragment shader. Additional shader objects can be included, but only one main function for each type is allowed. The shader objects get compiled and linked to the associated shader program.

Constructor & Destructor Documentation

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]


Member Function Documentation

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.


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

Generated on Mon May 21 06:00:32 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact