![]() |
Aether3D
Game Engine
|
Perspective or orthographic camera. More...
#include <Camera.hpp>
Public Member Functions | |
| virtual void | LookAt (const Vec3 &eye, const Vec3 ¢er, const Vec3 &up)=0 |
| virtual void | MoveForward (float amount)=0 |
| virtual void | MoveRight (float amount)=0 |
| virtual void | MoveUp (float amount)=0 |
| virtual void | OffsetRotation (const Vec3 &axis, float angleDegrees)=0 |
| virtual Vec3 | ScreenPoint (const Vec3 &worldPoint) const =0 |
| virtual void | SetProjection (float fieldOfViewDegrees, float aspect, float nearDepth, float farDepth)=0 |
| virtual void | SetViewport (int left, int right, int top, int bottom)=0 |
| virtual void | SetProjection (float left, float right, float bottom, float top, float nearDepth, float farDepth)=0 |
| virtual void | SetRenderTarget (Texture *target)=0 |
| virtual Vec3 | ViewDirection () const =0 |
| virtual float | FarClipPlane () const =0 |
| virtual float | NearClipPlane () const =0 |
Public Member Functions inherited from SceneGraphNode | |
| SceneGraphNode () | |
| virtual | ~SceneGraphNode () |
| virtual bool | AddChild (SceneGraphNode *child) |
| virtual bool | ContainsChild (const SceneGraphNode *node) const |
| virtual void | FindFirstChildWithName (const char *name, SceneGraphNode **outNode) |
| virtual void | SetLayerMask (unsigned mask) |
| virtual void | SetName (const std::string &newName) |
| virtual void | SetPosition (const Vec3 &aPosition) |
| virtual void | SetRotation (const Quaternion &aRotation) |
| virtual Quaternion | GetRotation () const |
| virtual void | SetScale (float aScale) |
| virtual float | GetScale () const |
| virtual void | SolveMatrices () |
| virtual SceneGraphNode * | Parent () |
| virtual std::string | GetName () const |
| virtual Type | GetType () const |
| virtual unsigned | GetLayerMask () const |
| virtual std::list< SceneGraphNode * > & | Children () |
| virtual Vec3 | GetPosition () const |
| virtual SceneGraphNode * | Root () |
| void | CleanDirties () |
| bool | IsDirty () const |
Additional Inherited Members | |
Public Types inherited from SceneGraphNode | |
| enum | Type { None, Model, Camera, Light } |
Static Public Member Functions inherited from SceneGraphNode | |
| static void | RegisterScene (Scene *scene) |
| static void | UnregisterScene () |
Public Attributes inherited from SceneGraphNode | |
| std::list< SceneGraphNode * > | children |
| Matrix44 | modelMatrix |
Protected Attributes inherited from SceneGraphNode | |
| Type | type |
| float | scale |
| Vec3 | position |
| SceneGraphNode * | parent |
| Quaternion | rotation |
| std::string | name |
| bool | dirtyTransform = true |
| unsigned | layerMask = 0xFFFFFFFF |
Perspective or orthographic camera.
|
pure virtual |
Looks at a point.
| eye | Camera's new position. |
| center | Point in space that's looked at. |
| up | Up-vector. |
|
pure virtual |
| amount | Movement amount. |
|
pure virtual |
| amount | Movement amount. |
|
pure virtual |
| amount | Movement amount. |
|
pure virtual |
|
pure virtual |
| axis | Axis, should be normalized. |
| angleDegrees | Angle in degrees. |
Gets screen coordinate of a world point.
| worldPoint | Point in scene. |
|
pure virtual |
Sets perspective projection.
| fieldOfViewDegrees | Field-of-View in degrees. |
| aspect | Aspect ratio. |
| nearDepth | Near plane distance. |
| farDepth | Far plane distance. |
|
pure virtual |
Sets orthographic projection.
| left | Left. |
| right | Right. |
| bottom | Bottom. |
| top | Top. |
| nearDepth | Near plane distance. |
| farDepth | Far plane distance. |
|
pure virtual |
Sets render target. Defaults to screen backbuffer.
| target | Target texture. Must have been created using dll.MakeRenderTexture(). Passing 0 renders to the back buffer. |
|
pure virtual |
Sets the viewport. Defaults to the window dimension.
| left | Left. |
| right | Right. |
| top | Top. |
| bottom | Bottom. |
|
pure virtual |
1.8.17