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

# Keos::COGLDeclaration Class Reference

Class for OpenGL vertex declarations. More...

`#include <KeosOGLDeclaration.h>`

Inheritance diagram for Keos::COGLDeclaration:

List of all members.

## Public Types

typedef std::vector< TElement > | TElementArray
typedef std::vector< TElementArray > | TElementMatrix

## Public Member Functions

| COGLDeclaration ()
| Default constructor.
| ~COGLDeclaration ()
| Destructor.
void | AddElement (uint nStream, const TElement &Element)
| Add an element description.
const TElementArray & | GetStreamElements (uint nStream) const
| Return the description of one stram from declaration.

## Private Attributes

TElementMatrix | m_Elements
| Declaration description.

## Classes

struct | TElement

## Detailed Description

Class for OpenGL vertex declarations.

Definition at line 33 of file KeosOGLDeclaration.h.

## Member Typedef Documentation

typedef std::vector<TElement> Keos::COGLDeclaration::TElementArray

| Definition at line 44 of file KeosOGLDeclaration.h.

typedef std::vector<TElementArray> Keos::COGLDeclaration::TElementMatrix

| Definition at line 45 of file KeosOGLDeclaration.h.

## Constructor & Destructor Documentation

Keos::COGLDeclaration::COGLDeclaration | ( |  | ) |

| Default constructor. Definition at line 32 of file KeosOGLDeclaration.cpp.

Keos::COGLDeclaration::~COGLDeclaration | ( |  | ) |

| Destructor. Definition at line 39 of file KeosOGLDeclaration.cpp.

## Member Function Documentation

void Keos::COGLDeclaration::AddElement | ( | uint | nStream,
|  | const TElement & | Element
| ) |

| Add an element description.

Parameters:

  | nStream | Stream number.
  | Element | Element to add.

Definition at line 45 of file KeosOGLDeclaration.cpp.

References m_Elements.

Referenced by Keos::COGLRenderSystem::CreateDeclaration().

const COGLDeclaration::TElementArray & Keos::COGLDeclaration::GetStreamElements | ( | uint | nStream | ) | const

| Return the description of one stram from declaration.

Parameters:

  | nStream | Stream number.

Returns:
  Reference on the elements array of the stream.

Definition at line 51 of file KeosOGLDeclaration.cpp.

References m_Elements.

Referenced by Keos::COGLRenderSystem::_SetVB().

## Member Data Documentation

TElementMatrix Keos::COGLDeclaration::m_Elements`[private]`

| Declaration description. Definition at line 70 of file KeosOGLDeclaration.h. Referenced by AddElement(), and GetStreamElements().

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

- RenderSystems/OpenGL/KeosOGLDeclaration.h
- RenderSystems/OpenGL/KeosOGLDeclaration.cpp