VertexShader Class Reference

Represents a vertex shader program. More...

#include "Shader.h"

List of all members.

Public Member Functions

 VertexShader ()
 Constructor.
 ~VertexShader ()
 De-constructor.
bool Load (const char *file)
 Loads a vertex shader from a file.
bool LoadFromMemory (const char *src)
 Loads a vertex shader from memory.
GLuint GetShaderID () const


Detailed Description

Represents a vertex shader program.

Definition at line 63 of file Shader.h.


Member Function Documentation

bool VertexShader::Load ( const char *  file  ) 

Loads a vertex shader from a file.

Parameters:
[in] file the name of the shader file.
Returns:
true on success, false on failure.

Definition at line 121 of file Shader.cpp.

Referenced by ShaderProgram::Load().

bool VertexShader::LoadFromMemory ( const char *  src  ) 

Loads a vertex shader from memory.

Parameters:
[in] src the source of the shader.
Returns:
true on success, false on failure.

Definition at line 127 of file Shader.cpp.

Referenced by ShaderProgram::LoadFromMemory().

GLuint VertexShader::GetShaderID (  )  const [inline]

Returns:
the opengl vertex shader id.

Definition at line 97 of file Shader.h.

Referenced by ShaderProgram::CreateShaderProgram(), and ShaderProgram::~ShaderProgram().


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

Generated on Thu Jan 15 00:58:04 2009 for RTVolumeRendering by  doxygen 1.5.6