|
Aeon Engine c550894
AeonGames Open Source Game Engine
|
Camera component providing perspective projection parameters for a scene node. More...
#include <C:/Code/AeonEngine/engine/components/Camera.h>


Public Member Functions | |
| Camera () | |
| Default constructor. | |
| float | GetFieldOfView () const |
| Returns the field of view in degrees. | |
| float | GetNearPlane () const |
| Returns the near clipping plane distance. | |
| float | GetFarPlane () const |
| Returns the far clipping plane distance. | |
| void | SetFieldOfView (float aFieldOfView) |
| Sets the field of view. | |
| void | SetNearPlane (float aNearPlane) |
| Sets the near clipping plane distance. | |
| void | SetFarPlane (float aFarPlane) |
| Sets the far clipping plane distance. | |
Overrides | |
| const StringId & | GetId () const final |
| Get the unique identifier for this component type. | |
| size_t | GetPropertyCount () const final |
| Get the number of properties exposed by this component. | |
| const StringId * | GetPropertyInfoArray () const final |
| Get the array of property identifiers. | |
| Property | GetProperty (const StringId &aId) const final |
| Get the value of a property. | |
| void | SetProperty (uint32_t, const Property &aProperty) final |
| Set the value aProperty for the property identified by aId. | |
| void | Update (Node &aNode, double aDelta) final |
| Update the component state. | |
| void | Render (const Node &aNode, Renderer &aRenderer, void *aWindowId) final |
| Render the component. | |
| void | ProcessMessage (Node &aNode, uint32_t aMessageType, const void *aMessageData) final |
| Process an incoming message. | |
| Public Member Functions inherited from AeonGames::Component | |
| virtual DLL | ~Component ()=0 |
| Pure virtual destructor. | |
| DLL void | SetProperty (const StringId &aId, const Property &aProperty) |
| Set a property by its StringId identifier. | |
| DLL void | SetProperty (const std::string &aId, const Property &aProperty) |
| Set a property by its string name. | |
Static Public Member Functions | |
| static const StringId & | GetClassId () |
| Returns the class identifier for the Camera component. | |
Camera component providing perspective projection parameters for a scene node.
| AeonGames::Camera::Camera | ( | ) |
Default constructor.
Definition at line 36 of file Camera.cpp.
|
static |
Returns the class identifier for the Camera component.
Definition at line 31 of file Camera.cpp.
| float AeonGames::Camera::GetFarPlane | ( | ) | const |
Returns the far clipping plane distance.
Definition at line 74 of file Camera.cpp.
| float AeonGames::Camera::GetFieldOfView | ( | ) | const |
Returns the field of view in degrees.
Definition at line 66 of file Camera.cpp.
|
finalvirtual |
Get the unique identifier for this component type.
Implements AeonGames::Component.
Definition at line 42 of file Camera.cpp.
| float AeonGames::Camera::GetNearPlane | ( | ) | const |
Returns the near clipping plane distance.
Definition at line 70 of file Camera.cpp.
Get the value of a property.
| aId | Identifier of the property to retrieve. |
Implements AeonGames::Component.
Definition at line 91 of file Camera.cpp.
|
finalvirtual |
Get the number of properties exposed by this component.
Implements AeonGames::Component.
Definition at line 56 of file Camera.cpp.
|
finalvirtual |
Get the array of property identifiers.
Implements AeonGames::Component.
Definition at line 61 of file Camera.cpp.
|
finalvirtual |
Process an incoming message.
| aNode | Node this component is attached to. |
| aMessageType | Type identifier of the message. |
| aMessageData | Pointer to message-specific data. |
Implements AeonGames::Component.
Definition at line 145 of file Camera.cpp.
|
finalvirtual |
Render the component.
| aNode | Node this component is attached to. |
| aRenderer | Renderer used for drawing. |
| aWindowId | Platform-specific window identifier. |
Implements AeonGames::Component.
Definition at line 141 of file Camera.cpp.
| void AeonGames::Camera::SetFarPlane | ( | float | aFarPlane | ) |
Sets the far clipping plane distance.
| aFarPlane | Far plane distance. |
Definition at line 86 of file Camera.cpp.
| void AeonGames::Camera::SetFieldOfView | ( | float | aFieldOfView | ) |
Sets the field of view.
| aFieldOfView | Field of view in degrees. |
Definition at line 78 of file Camera.cpp.
| void AeonGames::Camera::SetNearPlane | ( | float | aNearPlane | ) |
Sets the near clipping plane distance.
| aNearPlane | Near plane distance. |
Definition at line 82 of file Camera.cpp.
|
finalvirtual |
Set the value aProperty for the property identified by aId.
Implements AeonGames::Component.
Definition at line 105 of file Camera.cpp.
|
finalvirtual |
Update the component state.
| aNode | Node this component is attached to. |
| aDelta | Elapsed time since the last update, in seconds. |
Implements AeonGames::Component.
Definition at line 130 of file Camera.cpp.