File ItemWrapper.h

namespace Ogre

File: MovableText.h

Description: This creates a billboarding object that display a text. Note: This object must have a dedicated scene node since it will rotate it to face the camera (OGRE 2.1)

Author

2003 by cTh see gavocanov@rambler.ru 2006 by barraq see nospam@barraquand.com 2012 to work with newer versions of OGRE by MindCalamity mindcalamity@gmail.com 2015 to work on OGRE 2.1 (but not on older versions anymore) by Jayray jeremy.richert1@gmail.com

namespace Gsage
class ItemWrapper : public Gsage::MovableObjectWrapper<Ogre::Item>

Public Types

enum Query

Values:

STATIC = 0x01
DYNAMIC = 0x02
UNKNOWN = 0x04

Public Functions

ItemWrapper()
virtual ~ItemWrapper()
void setMesh(const std::string &mesh)

Set model mesh (this function creates entity)

Parameters
  • mesh: Mesh file name

const std::string &getMesh() const

Get mesh file name

void setQueryFlags(const std::string &type)

Set model entity flags, used for raycasting and querying entities

Parameters
  • type: static means that entity is a part of location, dynamic means that entity is some actor

const std::string &getQueryFlags() const

Get query flags of the model

Ogre::Item *getItem()

Get underlying entity

void setDatablock(const std::string &name)

Set item datablock

Parameters
  • name: datablock name (Hlms)

const std::string &getDatablock() const

Get item datablock name

Public Static Attributes

const std::string TYPE

Private Members

std::string mMeshName
std::string mDatablock
std::string mQueryString
Query mQuery