OGRE-Next  2.3
Object-Oriented Graphics Rendering Engine
Ogre::v1::HardwareBufferLicensee Class Referenceabstract

Abstract interface representing a 'licensee' of a hardware buffer copy. More...

#include <OgreHardwareBufferManager.h>

+ Inheritance diagram for Ogre::v1::HardwareBufferLicensee:

Public Member Functions

virtual ~HardwareBufferLicensee ()
 
virtual void licenseExpired (HardwareBuffer *buffer)=0
 This method is called when the buffer license is expired and is about to be returned to the shared pool. More...
 

Detailed Description

Abstract interface representing a 'licensee' of a hardware buffer copy.

Remarks
Often it's useful to have temporary buffers which are used for working but are not necessarily needed permanently. However, creating and destroying buffers is expensive, so we need a way to share these working areas, especially those based on existing fixed buffers. This class represents a licensee of one of those temporary buffers, and must be implemented by any user of a temporary buffer if they wish to be notified when the license is expired.

Constructor & Destructor Documentation

◆ ~HardwareBufferLicensee()

virtual Ogre::v1::HardwareBufferLicensee::~HardwareBufferLicensee ( )
inlinevirtual

Member Function Documentation

◆ licenseExpired()

virtual void Ogre::v1::HardwareBufferLicensee::licenseExpired ( HardwareBuffer buffer)
pure virtual

This method is called when the buffer license is expired and is about to be returned to the shared pool.

Implemented in Ogre::v1::TempBlendedBufferInfo.


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