|
| Camera () |
|
virtual | ~Camera () |
|
virtual const char * | getName () const |
|
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 vec3 | getPosition () const |
|
virtual vec3 | getLookAt () const |
|
virtual rotator | getRotation () const |
|
virtual mat4 | getViewMatrix () const |
|
virtual mat4 | getProjMatrix () 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 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 void | setPosition (const vec3 &v) |
|
virtual void | setLookAt (const vec3 &v) |
|
virtual void | setUp (const vec3 &v) |
|
virtual void | setZUp () |
|
virtual void | rotate (const rotator &r) |
|
virtual void | setRotation (const rotator &r) |
|
virtual void | setNearClip (real dist) |
|
virtual void | setFarClip (real dist) |
|
virtual void | setVertFOV (real rads) |
|
virtual void | setBGColor (const color &c) |
|
virtual void | setAspectRatio (real rat) |
|
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 selective) |
|
virtual real | getVertFOV () const |
|
virtual real | getNearClip () const |
|
virtual real | getFarClip () const |
|
virtual sval | getWidth () const |
|
virtual sval | getHeight () const |
|
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...
|
|
A notional camera in a scene defined by a point in space and the directional vectors describing its orientation. A viewport relates a camera to a render target, in this case a render UI widget. The viewport can be set to only cover some of the target's area, so multiple cameras can render into the widget in different places. By default cameras are instantiated as primary cameras and by default see all scene objects whose visibility settings haven't been changed. By setting a camera to be seconday it will by default see no scene objects except those Figure objects which explicitly makes themselves visible to that specific camera.
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 in OgreCamera.