|
| OgreCamera (Ogre::Camera *camera, Ogre::Viewport *port, OgreRenderScene *scene, u32 id) |
|
virtual | ~OgreCamera () |
|
virtual const char * | getName () const |
|
virtual vec3 | getPosition () const |
|
virtual vec3 | getLookAt () const |
|
virtual rotator | getRotation () const |
|
virtual vec3 | getScreenPosition (vec3 pos) const |
| Returns the (x,y) screen coordinate of the vector `pos' as drawn with the current camera configuration. More...
|
|
virtual mat4 | getViewMatrix () const |
|
virtual mat4 | getProjMatrix () const |
|
virtual void | setPosition (const vec3 &v) |
|
virtual void | setLookAt (const vec3 &v) |
|
virtual void | rotate (const rotator &r) |
|
virtual void | setRotation (const rotator &r) |
|
virtual void | setUp (const vec3 &v) |
|
virtual void | setZUp () |
|
virtual void | setNearClip (real dist) |
|
virtual void | setFarClip (real dist) |
|
virtual void | setVertFOV (real rads) |
|
virtual real | getVertFOV () const |
|
virtual real | getNearClip () const |
|
virtual real | getFarClip () const |
|
virtual sval | getWidth () const |
|
virtual sval | getHeight () const |
|
virtual u32 | getVisibilityMask () const |
|
virtual void | setBGColor (const color &c) |
|
virtual void | setAspectRatio (real rat) |
|
virtual real | getAspectRatio () const |
| Get the aspect ratio of the notional box this camera sees through and shall render to a target. More...
|
|
virtual Ray * | getProjectedRay (real x, real y, bool isAbsolute=true) const |
|
virtual void | setViewport (real left=0.0f, real top=0.0f, real width=1.0f, real height=1.0f) |
|
virtual void | setOrtho (bool isOrtho) |
|
virtual void | setWireframe (bool isWireframe) |
|
virtual void | setSecondaryCamera (bool secondary) |
|
virtual bool | isPointInViewport (int x, int y) const |
|
virtual bool | isSecondaryCamera () |
|
virtual void | renderToFile (const std::string &filename, sval width, sval height, TextureFormat format=TF_RGB24, real stereoOffset=0.0) throw (RenderException) |
| Create an offscreen texture, render to it, then write the contents to the file `filename', assuming it's extension is for an understood format. More...
|
|
virtual void | renderToStream (void *stream, sval width, sval height, TextureFormat format=TF_RGB24, real stereoOffset=0.0) throw (RenderException) |
| Create an offscreen texture, render to it, then blit the contents to `stream', which must be large enough for data of the given texture format. More...
|
|
virtual Image * | renderToImage (sval width, sval height, TextureFormat format=TF_RGB24, real stereoOffset=0.0) throw (RenderException) |
| Create an offscreen texture, render to it, then blit the contents to the returned Image object, which can then be used to save the image to file. More...
|
|
| Camera () |
|
virtual | ~Camera () |
|
virtual vec3 | getWorldPosition (real x, real y, bool isAbsolute=true) const |
| Returns the world position of screen coordinate (x,y), which is either absolute pixel coordinates or relative screen proportion values (see getProjectedRay()) More...
|
|
virtual Ray* getProjectedRay |
( |
real |
x, |
|
|
real |
y, |
|
|
bool |
isAbsolute = true |
|
) |
| const |
|
inlinevirtual |
Get the projected ray from a point on the screen, (x,y) are real render target (widget) screen coordinates if `isAbsolute' is true, otherwise (x,y) are relative screen proportion values ranging over the unit square. In either case the top left corner of the camera's view area is (0,0), the bottom right is (w,h) for view area w-by-h pixels or (1,1) for relative coords.
Reimplemented from Camera.