Pioneer
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
Camera Class Reference

#include <Camera.h>

Classes

class  LightSource
 
struct  Shadow
 

Public Member Functions

 Camera (RefCountedPtr< CameraContext > context, Graphics::Renderer *renderer)
 
const CameraContextGetContext () const
 
void Update ()
 
void Draw (const Body *excludeBody=nullptr)
 
void CalcShadows (const int lightNum, const Body *b, std::vector< Shadow > &shadowsOut) const
 
float ShadowedIntensity (const int lightNum, const Body *b) const
 
void PrincipalShadows (const Body *b, const int n, std::vector< Shadow > &shadowsOut) const
 
const std::vector< LightSource > & GetLightSources () const
 
int GetNumLightSources () const
 

Constructor & Destructor Documentation

◆ Camera()

Camera::Camera ( RefCountedPtr< CameraContext context,
Graphics::Renderer renderer 
)
Here is the call graph for this function:

Member Function Documentation

◆ CalcShadows()

void Camera::CalcShadows ( const int  lightNum,
const Body b,
std::vector< Shadow > &  shadowsOut 
) const
Here is the call graph for this function:

◆ Draw()

void Camera::Draw ( const Body excludeBody = nullptr)
Here is the call graph for this function:

◆ GetContext()

const CameraContext * Camera::GetContext ( ) const
inline
Here is the call graph for this function:

◆ GetLightSources()

const std::vector< LightSource > & Camera::GetLightSources ( ) const
inline

◆ GetNumLightSources()

int Camera::GetNumLightSources ( ) const
inline

◆ PrincipalShadows()

void Camera::PrincipalShadows ( const Body b,
const int  n,
std::vector< Shadow > &  shadowsOut 
) const
Here is the call graph for this function:

◆ ShadowedIntensity()

float Camera::ShadowedIntensity ( const int  lightNum,
const Body b 
) const
Here is the call graph for this function:

◆ Update()

void Camera::Update ( )
Here is the call graph for this function:

The documentation for this class was generated from the following files: