Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# Ogre::TempBlendedBufferInfo Class Reference

Structure for recording the use of temporary blend buffers. More...

`#include <OgreHardwareBufferManager.h>`

Inheritance diagram for Ogre::TempBlendedBufferInfo:

[legend]
List of all members.

## Public Methods

void | checkoutTempCopies (bool positions=true, bool normals=true)
| Utility method, checks out temporary copies of src into dest.
void | bindTempCopies (VertexData *targetData, bool suppressHardwareUpload)
| Utility method, binds dest copies into a given VertexData struct.
void | licenseExpired (HardwareBuffer *buffer)
| Overridden member from HardwareBufferLicensee.

## Public Attributes

HardwareVertexBufferSharedPtr | srcPositionBuffer
HardwareVertexBufferSharedPtr | srcNormalBuffer
HardwareVertexBufferSharedPtr | destPositionBuffer
HardwareVertexBufferSharedPtr | destNormalBuffer
bool | posNormalShareBuffer
| Both positions and normals are contained in the same buffer.
unsigned short | posBindIndex
unsigned short | normBindIndex
bool | bindPositions
bool | bindNormals

## Detailed Description

Structure for recording the use of temporary blend buffers.

Definition at line 58 of file OgreHardwareBufferManager.h.

## Member Function Documentation

void Ogre::TempBlendedBufferInfo::bindTempCopies | ( | VertexData * | targetData,
|  | bool | suppressHardwareUpload
| ) |

| Utility method, binds dest copies into a given VertexData struct. Definition at line 305 of file OgreHardwareBufferManager.cpp. References bindNormals, destNormalBuffer, destPositionBuffer, Ogre::SharedPtr< HardwareVertexBuffer >::isNull(), posNormalShareBuffer, Ogre::VertexBufferBinding::setBinding(), and Ogre::VertexData::vertexBufferBinding. Referenced by Ogre::Entity::updateAnimation().

void Ogre::TempBlendedBufferInfo::checkoutTempCopies | ( | bool | positions = true,
|  | bool | normals = true
| ) |

Utility method, checks out temporary copies of src into dest.

Definition at line 288 of file OgreHardwareBufferManager.cpp.

References Ogre::HardwareBufferManager::allocateVertexBufferCopy(), bindNormals, bindPositions, destNormalBuffer, destPositionBuffer, Ogre::SharedPtr< HardwareVertexBuffer >::isNull(), posNormalShareBuffer, srcNormalBuffer, and srcPositionBuffer.

Referenced by Ogre::Entity::updateAnimation().

void Ogre::TempBlendedBufferInfo::licenseExpired | ( | HardwareBuffer * | buffer | ) | `[virtual]`

| Overridden member from HardwareBufferLicensee. Implements Ogre::HardwareBufferLicensee. Definition at line 318 of file OgreHardwareBufferManager.cpp. References destNormalBuffer, destPositionBuffer, Ogre::SharedPtr< HardwareVertexBuffer >::get(), and Ogre::SharedPtr< HardwareVertexBuffer >::setNull().

## Member Data Documentation

bool Ogre::TempBlendedBufferInfo::bindNormals

| Definition at line 72 of file OgreHardwareBufferManager.h. Referenced by bindTempCopies(), and checkoutTempCopies().

bool Ogre::TempBlendedBufferInfo::bindPositions

| Definition at line 71 of file OgreHardwareBufferManager.h. Referenced by checkoutTempCopies().

HardwareVertexBufferSharedPtr Ogre::TempBlendedBufferInfo::destNormalBuffer

| Definition at line 66 of file OgreHardwareBufferManager.h. Referenced by bindTempCopies(), checkoutTempCopies(), and licenseExpired().

HardwareVertexBufferSharedPtr Ogre::TempBlendedBufferInfo::destPositionBuffer

| Definition at line 65 of file OgreHardwareBufferManager.h. Referenced by bindTempCopies(), checkoutTempCopies(), and licenseExpired().

unsigned short Ogre::TempBlendedBufferInfo::normBindIndex

| Definition at line 70 of file OgreHardwareBufferManager.h. Referenced by Ogre::Entity::extractTempBufferInfo().

unsigned short Ogre::TempBlendedBufferInfo::posBindIndex

| Definition at line 69 of file OgreHardwareBufferManager.h. Referenced by Ogre::Entity::extractTempBufferInfo().

bool Ogre::TempBlendedBufferInfo::posNormalShareBuffer

| Both positions and normals are contained in the same buffer. Definition at line 68 of file OgreHardwareBufferManager.h. Referenced by bindTempCopies(), checkoutTempCopies(), and Ogre::Entity::extractTempBufferInfo().

HardwareVertexBufferSharedPtr Ogre::TempBlendedBufferInfo::srcNormalBuffer

| Definition at line 63 of file OgreHardwareBufferManager.h. Referenced by checkoutTempCopies(), and Ogre::Entity::extractTempBufferInfo().

HardwareVertexBufferSharedPtr Ogre::TempBlendedBufferInfo::srcPositionBuffer

| Definition at line 62 of file OgreHardwareBufferManager.h. Referenced by checkoutTempCopies(), and Ogre::Entity::extractTempBufferInfo().

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

- OgreHardwareBufferManager.h
- OgreHardwareBufferManager.cpp

Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:43 2004