-
Notifications
You must be signed in to change notification settings - Fork 274
Camera
Adrien GIVRY edited this page Sep 26, 2020
·
3 revisions
Represents a camera entity. Its position will determine its view matrix
- C++ related class:
OvCore::ECS::Components::CCamera - Inherits from lua usertype:
Component
This usertype has no variables
| Name | Input | Output | Description |
|---|---|---|---|
| new | Camera |
Default constructor |
| Name | Input | Output | Description |
|---|---|---|---|
| GetFov |
Camera: instance |
number |
Returns the field of view of the camera (Perspective) |
| GetSize |
Camera: instance |
number |
Returns the size of the camera (Orthographic) |
| GetNear |
Camera: instance |
number |
Returns the distance between the camera and its near plane |
| GetFar |
Camera: instance |
number |
Returns the distance between the camera and its far plane |
| GetClearColor |
Camera: instance |
Vector3 |
Returns the background color used before rendering the scene with this camera |
| SetFov |
Camera: instancenumber: fov |
Defines the field of view of the camera (Perspective) | |
| SetSize |
Camera: instancenumber: size |
Defines the size of the camera (Orthographic) | |
| SetNear |
Camera: instancenumber: near |
Defines the distance between the camera and its near plane | |
| SetFar |
Camera: instancenumber: far |
Defines the distance between the camera and its far plane | |
| SetClearColor |
Camera: instanceVector3: color |
Defines the background color used before rendering the scene with this camera | |
| HasFrustumGeometryCulling |
Camera: instance |
boolean |
Returns true if the camera is culling geometry outside of its frustum |
| HasFrustumLightCulling |
Camera: instance |
boolean |
Returns true if the camera is culling lights outside of its frustum |
| GetProjectionMode |
Camera: instance |
ProjectionMode |
Returns the projection mode used by the camera (Orthographic or Perspective) |
| SetFrustumGeometryCulling |
Camera: instanceboolean: cull |
Defines if the camera should cull geometry outside of its frustum | |
| SetFrustumLightCulling |
Camera: instanceboolean: cull |
Defines if the camera should cull lights outside of its frustum | |
| SetProjectionMode |
Camera: instanceProjectionMode: mode |
Defines the projection mode the camera should be using (Orthographic or Perspective) |
This usertype has no operators
