Camera struct

From Solid Graphics Wiki

Jump to: navigation, search
Camera struct
Namespace: SKL3D
Base type: (None)
Include: Skl3DWindow.h
Lib (Release): SKL.lib
Lib (Debug): SKL_D.lib

The Camera struct defines a camera parameters.


The Camera constructor moves camera eye point to (0, 0, -10), target point to (0, 0, 0), upDirection to (0, 1, 0), orthoProjection to false, aperture to 100.


Field name Type Description
name String the camera name
position Point the camera "eye" position
targetPosition Point a point where the camera is pointing
upDirection Vector camera's up direction
orthoProjection bool true/false flag telling whether the camera uses orthographic projection
viewAngleY float camera's vertical view angle
aperture float camera's aperture


Method name Description
ImportPosition imports position, target point and up direction information from other Camera object
FitObject points the camera on the object and moves to such distance that the whole object is visible in the camera
LoadFromXML loads camera parameters from a XmlReader object.
SaveToXML saves camera position to MemoryBuffer object as XML


The Camera class has no operators.

See Also


SolidKit Library Documentation

Personal tools