Camera views the scene. GameObject containing a camera component must also contain a TransformComponent to render anything.  
 More...
#include <CameraComponent.hpp>
 | 
| enum   | ProjectionType { Orthographic, 
Perspective
 } | 
|   | Projection type. 
  | 
|   | 
| enum   | ClearFlag { DepthAndColor, 
Depth, 
DontClear
 } | 
|   | Clear flag. 
  | 
|   | 
 | 
| class GameObject *  | GetGameObject () const  | 
|   | 
| const Matrix44 &  | GetProjection () const  | 
|   | 
| const Matrix44 &  | GetView () const  | 
|   | 
| Vec3  | GetScreenPoint (const Vec3 &worldPoint, float viewWidth, float viewHeight) const  | 
|   | 
| ProjectionType  | GetProjectionType () const  | 
|   | 
| void  | SetProjectionType (ProjectionType aProjectionType) | 
|   | 
| void  | SetProjection (float left, float right, float bottom, float top, float near, float far) | 
|   | 
| void  | SetProjection (float fovDegrees, float aspect, float near, float far) | 
|   | 
| void  | SetProjection (const Matrix44 &proj) | 
|   | 
| Vec3  | GetClearColor () const  | 
|   | 
| RenderTexture *  | GetTargetTexture () | 
|   | 
| RenderTexture &  | GetDepthNormalsTexture () | 
|   | 
| void  | SetClearColor (const Vec3 &color) | 
|   | 
| void  | SetTargetTexture (RenderTexture *renderTexture) | 
|   | 
| void  | SetClearFlag (ClearFlag aClearFlag) | 
|   | 
| void  | SetLayerMask (unsigned aLayerMask) | 
|   | 
| unsigned  | GetRenderOrder () const  | 
|   | 
| void  | SetRenderOrder (unsigned order) | 
|   | 
| unsigned  | GetLayerMask () const  | 
|   | 
| ClearFlag  | GetClearFlag () const  | 
|   | 
| float  | GetNear () const  | 
|   | 
| float  | GetFar () const  | 
|   | 
| float  | GetAspect () const  | 
|   | 
| float  | GetFovDegrees () const  | 
|   | 
| std::string  | GetSerialized () const  | 
|   | 
| float  | GetLeft () const  | 
|   | 
| float  | GetRight () const  | 
|   | 
| float  | GetBottom () const  | 
|   | 
| float  | GetTop () const  | 
|   | 
| void  | SetView (const Matrix44 &view) | 
|   | 
 | 
| 
class  | GameObject | 
|   | 
| 
class  | Scene | 
|   | 
Camera views the scene. GameObject containing a camera component must also contain a TransformComponent 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   | 
  
 
 
- Returns
 - Depth and normals texture. 
 
 
 
  
  
      
        
          | float ae3d::CameraComponent::GetFar  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | float ae3d::CameraComponent::GetFovDegrees  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | class GameObject* ae3d::CameraComponent::GetGameObject  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | unsigned ae3d::CameraComponent::GetLayerMask  | 
          ( | 
           | ) | 
           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. 
 
 
 
  
  
      
        
          | unsigned ae3d::CameraComponent::GetRenderOrder  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | float ae3d::CameraComponent::GetRight  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
- Returns
 - Right clipping plane. 
 
 
 
      
        
          | Vec3 ae3d::CameraComponent::GetScreenPoint  | 
          ( | 
          const Vec3 &  | 
          worldPoint,  | 
        
        
           | 
           | 
          float  | 
          viewWidth,  | 
        
        
           | 
           | 
          float  | 
          viewHeight  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
- Parameters
 - 
  
    | worldPoint | Point in the world.  | 
    | viewWidth | Camera's viewport width.  | 
    | viewHeight | Camera's viewport height.  | 
  
   
- Returns
 - Screen point for worldPoint. 
 
 
 
      
        
          | 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  | 
          aClearFlag | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
- Parameters
 - 
  
    | aClearFlag | Clear flag. Defaults to DepthAndColor.  | 
  
   
 
 
  
  
      
        
          | void ae3d::CameraComponent::SetLayerMask  | 
          ( | 
          unsigned  | 
          aLayerMask | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
- Parameters
 - 
  
    | aLayerMask | Layer mask contains OR'd layers that this camera renders into.  | 
  
   
 
 
      
        
          | 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::SetRenderOrder  | 
          ( | 
          unsigned  | 
          order | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
- Parameters
 - 
  
    | order | Order. Higher values are rendered after lower values.  | 
  
   
 
 
      
        
          | 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: