25 #ifndef __I6ENGINE_API_CAMERACOMPONENT_H__
26 #define __I6ENGINE_API_CAMERACOMPONENT_H__
72 void setPosition(
const Vec3 & relativePosition);
80 void setLookAt(
const Vec3 & lookAt);
87 void setNearClip(
const int32_t n);
94 void setAspectRatio(
const double ratio);
102 void setFOVy(
const double fov);
107 void setFrustumExtends(
const double left,
const double right,
const double top,
const double bottom);
114 void setViewportDimension(
const double left,
const double top,
const double width,
const double height);
119 void setViewportBackground(
const double red,
const double green,
const double blue,
const double alpha);
144 std::vector<componentOptions> getComponentOptions()
override;
149 void enableCompositor(
const std::string & compositor,
bool enabled);
151 virtual std::pair<AddStrategy, int64_t> howToAdd(
const ComPtr & comp)
const override;
196 void Init()
override;
203 void sendCameraUpdateMessage();
208 void sendViewportUpdateMessage();
213 void sendFrustumUpdateMessage();
#define ISIXE_MODULES_API
std::map< std::string, std::string > attributeMap
Vec3 _lookAt
Point the Camera looks at.
Implements 3-dimensional vectors.
Vec3 getPosition() const
returns the relative position of the camera on the GameObject
A shared pointer counting references and adds objects being not referenced any more to an internal li...
Vec3 getLookAt() const
returns the position of the lookAt in world space!
Attaches a camera to an object. The Camera will follow the object For creating a CameraComponent, these keys are possible: Name Required Type Description Public pos yes Vec3 relative position of camera to SceneNode yes lookAt yes Vec3 absolute look at position in the world yes nearclip yes double near clipping distance yes aspect no double aspect ration of the camera yes viewport no bool defines whether this camera has a viewport or not yes zOrder *) int relative position on the screen depending on other viewports (has to be unique), *) required when viewport true yes vp_left *) double left startpoint of the viewport, value between 0 and 1, *) required when viewport true yes vp_top *) double uppper startpoint of the viewport, value between 0 and 1, *) required when viewport true yes vp_width *) double width of the viewport, value between 0 and 1, *) required when viewport true yes vp_height *) double height of the viewport, value between 0 and 1, *) required when viewport true yes vp_red *) double red part of the viewports background colour, *) required when viewport true yes vp_green *) double green part of the viewports background colour, *) required when viewport true yes vp_blue *) double blue part of the viewports background colour, *) required when viewport true yes vp_alpha *) double alpha part of the viewports background colour, *) required when viewport true yes
Vec3 _position
Position of the camera.
std::string getTemplateName() const override
returns the name this template was registered with
int32_t _nearClip
nearClippingDistance
Component Base Class. All Components must derive from Component.