OpenMW
Public Member Functions | Private Member Functions | Private Attributes
OEngine::Render::SelectionBuffer Class Reference

#include <selectionbuffer.hpp>

List of all members.

Public Member Functions

 SelectionBuffer (Ogre::Camera *camera, int sizeX, int sizeY, int visibilityFlags)
virtual ~SelectionBuffer ()
int getSelected (int xPos, int yPos)
void update ()
virtual Ogre::Technique * handleSchemeNotFound (unsigned short schemeIndex, const Ogre::String &schemeName, Ogre::Material *originalMaterial, unsigned short lodIndex, const Ogre::Renderable *rend)

Private Member Functions

void getNextColour ()

Private Attributes

Ogre::TexturePtr mTexture
Ogre::RenderTexture * mRenderTarget
Ogre::Image mBuffer
std::map< Ogre::ColourValue,
int, cmp_ColourValue
mColourMap
Ogre::ColourValue mCurrentColour

Constructor & Destructor Documentation

OEngine::Render::SelectionBuffer::SelectionBuffer ( Ogre::Camera *  camera,
int  sizeX,
int  sizeY,
int  visibilityFlags 
)

Member Function Documentation

int OEngine::Render::SelectionBuffer::getSelected ( int  xPos,
int  yPos 
)
Returns:
ID of the selected object
Ogre::Technique * OEngine::Render::SelectionBuffer::handleSchemeNotFound ( unsigned short  schemeIndex,
const Ogre::String &  schemeName,
Ogre::Material *  originalMaterial,
unsigned short  lodIndex,
const Ogre::Renderable *  rend 
) [virtual]

Member Data Documentation

std::map<Ogre::ColourValue, int, cmp_ColourValue> OEngine::Render::SelectionBuffer::mColourMap [private]
Ogre::RenderTexture* OEngine::Render::SelectionBuffer::mRenderTarget [private]
Ogre::TexturePtr OEngine::Render::SelectionBuffer::mTexture [private]

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