Keos::CShadersLoader Class Reference

Class managing the load of shaders. More...

#include <KeosShadersLoader.h>

Inheritance diagram for Keos::CShadersLoader:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CShadersLoader (TShaderType Type)
 Build the loader.
 ~CShadersLoader ()
 Destruct the loader.
virtual IShaderBaseLoadFromFile (const String &strFilename)
 Load a shader from a file.

Detailed Description

Class managing the load of shaders.

Use the Cg library.

Definition at line 37 of file KeosShadersLoader.h.


Constructor & Destructor Documentation

Keos::CShadersLoader::CShadersLoader ( TShaderType  Type  ) 

Build the loader.

Parameters:
Type Type of the managed shaders.

Definition at line 32 of file KeosShadersLoader.cpp.

Keos::CShadersLoader::~CShadersLoader (  ) 

Destruct the loader.

Todo:
this destruction bugs under OpenGL, impossible to know why

Definition at line 43 of file KeosShadersLoader.cpp.


Member Function Documentation

IShaderBase * Keos::CShadersLoader::LoadFromFile ( const String strFilename  )  [virtual]

Load a shader from a file.

Parameters:
strFilename Path of the file to be loaded.
Returns:
Pointer on the shader loaded.

Reimplemented from Keos::ILoader< T >.

Definition at line 53 of file KeosShadersLoader.cpp.

References Keos::CAP_FRAGMENT_PROGRAM, Keos::CAP_VERTEX_PROGRAM, LOADINGFAILED_EXCEPT, Renderer, Keos::SHADER_PIXEL, Keos::SHADER_VERTEX, and Keos::CException::what().


The documentation for this class was generated from the following files:
Generated on Fri Mar 9 14:29:28 2007 for Keos by  doxygen 1.5.1-p1