Camera views the scene. Game Object containing a camera component must also contain a transform component to render anything.
More...
#include <CameraComponent.hpp>
|
enum | ProjectionType { Orthographic,
Perspective
} |
| Projection type.
|
|
enum | ClearFlag { DepthAndColor,
DontClear
} |
| Clear flag.
|
|
|
class | GameObject |
|
class | Scene |
|
Camera views the scene. Game Object containing a camera component must also contain a transform component to render anything.
float ae3d::CameraComponent::GetAspect |
( |
| ) |
const |
|
inline |
float ae3d::CameraComponent::GetBottom |
( |
| ) |
const |
|
inline |
- Returns
- Bottom clipping plane.
Vec3 ae3d::CameraComponent::GetClearColor |
( |
| ) |
const |
|
inline |
- Returns
- Clear color in range 0-1.
ClearFlag ae3d::CameraComponent::GetClearFlag |
( |
| ) |
const |
|
inline |
float ae3d::CameraComponent::GetFar |
( |
| ) |
const |
|
inline |
float ae3d::CameraComponent::GetFovDegrees |
( |
| ) |
const |
|
inline |
float ae3d::CameraComponent::GetLeft |
( |
| ) |
const |
|
inline |
- Returns
- Left clipping plane.
float ae3d::CameraComponent::GetNear |
( |
| ) |
const |
|
inline |
const Matrix44& ae3d::CameraComponent::GetProjection |
( |
| ) |
const |
|
inline |
- Returns
- Projection matrix.
float ae3d::CameraComponent::GetRight |
( |
| ) |
const |
|
inline |
- Returns
- Right clipping plane.
std::string ae3d::CameraComponent::GetSerialized |
( |
| ) |
const |
- Returns
- Textual representation of component.
- Returns
- Target texture or null if there is no target texture.
float ae3d::CameraComponent::GetTop |
( |
| ) |
const |
|
inline |
- Returns
- Top clipping plane.
const Matrix44& ae3d::CameraComponent::GetView |
( |
| ) |
const |
|
inline |
void ae3d::CameraComponent::SetClearColor |
( |
const Vec3 & |
color | ) |
|
void ae3d::CameraComponent::SetClearFlag |
( |
ClearFlag |
clearFlag | ) |
|
- Parameters
-
clearFlag | Clear flag. Defaults to DepthAndColor. |
void ae3d::CameraComponent::SetProjection |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top, |
|
|
float |
near, |
|
|
float |
far |
|
) |
| |
Sets an orthographic projection matrix.
- Parameters
-
left | Left. |
right | Right. |
bottom | Bottom. |
top | Top. |
near | Near plane distance. |
far | Far plane distance. |
void ae3d::CameraComponent::SetProjection |
( |
float |
fovDegrees, |
|
|
float |
aspect, |
|
|
float |
near, |
|
|
float |
far |
|
) |
| |
Sets a perspective projection matrix.
- Parameters
-
fovDegrees | Field of view in degrees. |
aspect | Aspect ratio. |
near | Near plane distance. |
far | Far plane distance. |
void ae3d::CameraComponent::SetProjection |
( |
const Matrix44 & |
proj | ) |
|
void ae3d::CameraComponent::SetProjectionType |
( |
ProjectionType |
aProjectionType | ) |
|
|
inline |
- Parameters
-
aProjectionType | Projection type. Defaults to orthographic. |
void ae3d::CameraComponent::SetTargetTexture |
( |
RenderTexture * |
renderTexture | ) |
|
- Parameters
-
renderTexture | 2D or Cube render texture. |
void ae3d::CameraComponent::SetView |
( |
const Matrix44 & |
view | ) |
|
|
inline |
TODO: Convert to private
- Parameters
-
The documentation for this class was generated from the following file: