Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# Keos::COGLShader Class Reference

Class for OpenGL renderer system. More...

`#include <KeosOGLShader.h>`

Inheritance diagram for Keos::COGLShader:

List of all members.

## Public Member Functions

| COGLShader (CGprogram Program, TShaderType Type)
| Construct the shader from a program Cg.
CGprogram | GetProgram () const
| Get the Cg Program.

## Private Member Functions

virtual void | SetParameter (const String &strName, const float *pValue)
| See IShaderBase.
virtual void | SetParameter (const String &strName, const CMatrix4 &Value)
| See IShaderBase.

## Detailed Description

Class for OpenGL renderer system.

Definition at line 33 of file KeosOGLShader.h.

## Constructor & Destructor Documentation

Keos::COGLShader::COGLShader | ( | CGprogram | Program,
|  | TShaderType | Type
| ) |

| Construct the shader from a program Cg.

Parameters:

  | Program | Cg program.
  | Type | Shader type.

Definition at line 32 of file KeosOGLShader.cpp.

## Member Function Documentation

CGprogram Keos::COGLShader::GetProgram | ( |  | ) | const

| Get the Cg Program.

Returns:
  The Cg program.

Definition at line 51 of file KeosOGLShader.cpp.

Referenced by Keos::COGLRenderSystem::SetPixelShader(), and Keos::COGLRenderSystem::SetVertexShader().

void Keos::COGLShader::SetParameter | ( | const String & | strName,
|  | const CMatrix4 & | Value
| ) | `[private, virtual]`

| See IShaderBase. Implements Keos::IShaderBase. Definition at line 45 of file KeosOGLShader.cpp. References Keos::IShaderBase::GetParameter().

void Keos::COGLShader::SetParameter | ( | const String & | strName,
|  | const float * | pValue
| ) | `[private, virtual]`

| See IShaderBase. Implements Keos::IShaderBase. Definition at line 39 of file KeosOGLShader.cpp. References Keos::IShaderBase::GetParameter().

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

- RenderSystems/OpenGL/KeosOGLShader.h
- RenderSystems/OpenGL/KeosOGLShader.cpp