OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::BufferInterface Class Referenceabstract

Most (if not all) buffers, can be treated with the same code. More...

#include <OgreBufferInterface.h>

+ Inheritance diagram for Ogre::BufferInterface:

Public Member Functions

 BufferInterface ()
 
virtual ~BufferInterface ()
 
virtual void _notifyBuffer (BufferPacked *buffer)
 
virtual void advanceFrame (void)=0
 
virtual void *RESTRICT_ALIAS_RETURN map (size_t elementStart, size_t elementCount, MappingState prevMappingState, bool advanceFrame=true)=0
 
virtual void regressFrame (void)=0
 
virtual void unmap (UnmapOptions unmapOption, size_t flushStartElem=0, size_t flushSizeElem=0)=0
 
void upload (const void *data, size_t elementStart, size_t elementCount)
 

Detailed Description

Most (if not all) buffers, can be treated with the same code.

Hence most equivalent functionality is encapsulated here.

Constructor & Destructor Documentation

◆ BufferInterface()

Ogre::BufferInterface::BufferInterface ( )

◆ ~BufferInterface()

virtual Ogre::BufferInterface::~BufferInterface ( )
inlinevirtual

Member Function Documentation

◆ _notifyBuffer()

virtual void Ogre::BufferInterface::_notifyBuffer ( BufferPacked buffer)
inlinevirtual

Reimplemented in Ogre::NULLBufferInterface.

◆ advanceFrame()

◆ map()

virtual void *RESTRICT_ALIAS_RETURN Ogre::BufferInterface::map ( size_t  elementStart,
size_t  elementCount,
MappingState  prevMappingState,
bool  advanceFrame = true 
)
pure virtual

◆ regressFrame()

◆ unmap()

virtual void Ogre::BufferInterface::unmap ( UnmapOptions  unmapOption,
size_t  flushStartElem = 0,
size_t  flushSizeElem = 0 
)
pure virtual

◆ upload()

void Ogre::BufferInterface::upload ( const void data,
size_t  elementStart,
size_t  elementCount 
)

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