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

# Keos::COGLBuffer< Type > Class Template Reference

Vertex/Index buffer OpenGL implementation. More...

`#include <KeosOGLBuffer.h>`

Inheritance diagram for Keos::COGLBuffer< Type >:

List of all members.

## Public Member Functions

| COGLBuffer (ulong nCount, uint nBuffer)
| Constructor.
virtual | ~COGLBuffer ()
| Destructor.
uint | GetBuffer () const
| Return the OGL Buffer id.

## Private Member Functions

void * | Lock (ulong nOffset, ulong nSize, ulong nFlags)
| See IBufferBase.
void | Unlock ()
| See IBufferBase.

## Private Attributes

uint | m_nBuffer

## Detailed Description

### template<int Type>
class Keos::COGLBuffer< Type >

Vertex/Index buffer OpenGL implementation.

Definition at line 35 of file KeosOGLBuffer.h.

## Constructor & Destructor Documentation

template<int Type>
Keos::COGLBuffer< Type >::COGLBuffer | ( | ulong | nCount,
|  | uint | nBuffer
| ) | `[inline]`

| Constructor.

Parameters:

  | nCount | Buffer size.
  | nBuffer | OpenGL buffer id.

Definition at line 78 of file KeosOGLBuffer.h.

template<int Type>
Keos::COGLBuffer< Type >::~COGLBuffer | ( |  | ) | `[inline, virtual]`

| Destructor. Definition at line 87 of file KeosOGLBuffer.h. References Keos::COGLBuffer< Type >::m_nBuffer.

## Member Function Documentation

template<int Type>
uint Keos::COGLBuffer< Type >::GetBuffer | ( |  | ) | const`[inline]`

| Return the OGL Buffer id. Definition at line 95 of file KeosOGLBuffer.h. References Keos::COGLBuffer< Type >::m_nBuffer. Referenced by Keos::COGLRenderSystem::_SetIB(), and Keos::COGLRenderSystem::_SetVB().

template<int Type>
void * Keos::COGLBuffer< Type >::Lock | ( | ulong | nOffset,
|  | ulong | nSize,
|  | ulong | nFlags
| ) | `[inline, private, virtual]`

| See IBufferBase. Implements Keos::IBufferBase. Definition at line 102 of file KeosOGLBuffer.h. References Keos::COGLBuffer< Type >::m_nBuffer.

template<int Type>
void Keos::COGLBuffer< Type >::Unlock | ( |  | ) | `[inline, private, virtual]`

| See IBufferBase. Implements Keos::IBufferBase. Definition at line 112 of file KeosOGLBuffer.h.

## Member Data Documentation

template<int Type>
uint Keos::COGLBuffer< Type >::m_nBuffer`[private]`

| Definition at line 64 of file KeosOGLBuffer.h. Referenced by Keos::COGLBuffer< Type >::GetBuffer(), Keos::COGLBuffer< Type >::Lock(), and Keos::COGLBuffer< Type >::~COGLBuffer().

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

- RenderSystems/OpenGL/KeosOGLBuffer.h