PixelShader Class Reference

Represents a pixel shader program. More...

#include "Shader.h"

List of all members.

Public Member Functions

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


Detailed Description

Represents a pixel shader program.

Definition at line 18 of file Shader.h.


Member Function Documentation

bool PixelShader::Load ( const char *  file  ) 

Loads a pixel shader from a file.

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

Definition at line 99 of file Shader.cpp.

Referenced by ShaderProgram::Load().

bool PixelShader::LoadFromMemory ( const char *  src  ) 

Loads a pixel shader from memory.

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

Definition at line 105 of file Shader.cpp.

Referenced by ShaderProgram::LoadFromMemory().

GLuint PixelShader::GetShaderID (  )  const [inline]

Returns:
the opengl pixel shader id.

Definition at line 52 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