Click or drag to resize
DigitalRuneCamera Class
Represents a camera that defines a view into the 3D scene.
Inheritance Hierarchy
SystemObject
  DigitalRune.GraphicsCamera

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public class Camera : INamedObject

The Camera type exposes the following members.

Constructors
  NameDescription
Public methodCamera
Initializes a new instance of the Camera class with a given projection.
Top
Methods
  NameDescription
Public methodClone
Creates a new Camera that is a clone (deep copy) of the current instance.
Protected methodCloneCore
Makes the instance a clone (deep copy) of the specified Camera.
Protected methodCreateInstanceCore
When implemented in a derived class, creates a new instance of the Camera derived class.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyLastProjection
Gets or sets the projection transformation of the last frame.
Public propertyName
Gets or sets the name of this camera.
Public propertyProjection
Gets the projection.
Top
Remarks

This class has a Projection, which defines the camera frustum and the projection transformation.

The view transformation (position and orientation of the camera in the world) is defined by creating a CameraNode in a IScene. Multiple CameraNodes can share the same Camera object.

Cloning:
Cameras are cloneable. When Clone is called all properties including the Projection are duplicated (deep copy).

See Also