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

# Keos::CD3D9Buffer< T > Class Template Reference

Vertex/Index buffer Direct3D9 implementation. More...

`#include <KeosD3D9Buffer.h>`

Inheritance diagram for Keos::CD3D9Buffer< T >:

List of all members.

## Public Member Functions

| CD3D9Buffer (ulong nCount, T *pBuffer)
| Constructor.
T * | GetBuffer () const
| Return a pointer on the D3D9 buffer.

## Private Member Functions

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

## Private Attributes

CSmartPtr< T, CCOMRefCounted > | m_pBuffer
| D3D9 buffer pointer.

## Detailed Description

### template<class T>
class Keos::CD3D9Buffer< T >

Vertex/Index buffer Direct3D9 implementation.

Definition at line 38 of file KeosD3D9Buffer.h.

## Constructor & Destructor Documentation

template<class T>
Keos::CD3D9Buffer< T >::CD3D9Buffer | ( | ulong | nCount,
|  | T * | pBuffer
| ) | `[inline]`

| Constructor.

Parameters:

  | nCount | Buffer size.
  | pBuffer | D3D9 buffer pointer.

Definition at line 78 of file KeosD3D9Buffer.h.

## Member Function Documentation

template<class T>
T * Keos::CD3D9Buffer< T >::GetBuffer | ( |  | ) | const`[inline]`

| Return a pointer on the D3D9 buffer. Definition at line 87 of file KeosD3D9Buffer.h. References Keos::CD3D9Buffer< T >::m_pBuffer. Referenced by Keos::CD3D9RenderSystem::_SetIB(), and Keos::CD3D9RenderSystem::_SetVB().

template<class T>
void * Keos::CD3D9Buffer< T >::Lock | ( | ulong | nOffset,
|  | ulong | nSize,
|  | ulong | nFlags
| ) | `[inline, private, virtual]`

| See IBufferBase. Implements Keos::IBufferBase. Definition at line 94 of file KeosD3D9Buffer.h. References Keos::CD3D9Buffer< T >::m_pBuffer.

template<class T>
void Keos::CD3D9Buffer< T >::Unlock | ( |  | ) | `[inline, private, virtual]`

| See IBufferBase. Implements Keos::IBufferBase. Definition at line 104 of file KeosD3D9Buffer.h. References Keos::CD3D9Buffer< T >::m_pBuffer.

## Member Data Documentation

template<class T>
CSmartPtr<T, CCOMRefCounted> Keos::CD3D9Buffer< T >::m_pBuffer`[private]`

| D3D9 buffer pointer. Definition at line 63 of file KeosD3D9Buffer.h. Referenced by Keos::CD3D9Buffer< T >::GetBuffer(), Keos::CD3D9Buffer< T >::Lock(), and Keos::CD3D9Buffer< T >::Unlock().

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

- RenderSystems/Direct3D9/KeosD3D9Buffer.h