File CameraWrapper.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
CameraWrapper: public Gsage::MovableObjectWrapper<Ogre::Camera>, public Listener Public Functions
-
CameraWrapper()¶
-
virtual
~CameraWrapper()¶
-
void
setOrientation(const Ogre::Quaternion &orientation)¶ Sets camera orientation
- Parameters
orientation: Ogre::Quaternion
-
void
attach(RenderTargetPtr renderTarget)¶ Attach the camera to render target
- Parameters
renderTarget: RenderTarget
-
void
detach()¶ Detach camera from the render target
-
void
createCamera(const std::string &name)¶ Create camera
- Parameters
name: Camera name
-
const std::string &
getName() const¶ Get camera name
-
void
setClipDistance(const float &value)¶ Set camera clip distance
- Parameters
value: Clip distance
-
float
getClipDistance()¶ Get camera clip distance
-
void
setBgColour(const Ogre::ColourValue &colour)¶ Set viewport background colour
- Parameters
colour: ColourValue
-
bool
isActive() const¶ Check if camera is active
-
void
destroy()¶ Remove camera
-
RenderTargetPtr
getRenderTarget()¶ Get render target camera attached to
Public Static Attributes
-
const std::string
TYPE¶
-
-
class