sculpto
|
#include <camera.h>
Public Member Functions | |
const matr4 & | GetProjection () const |
const matr4 & | GetView () const |
const matr4 & | GetViewProjection () const |
camera_projection_type | GetProjectionType () const |
float | GetFieldOfView () const |
float | GetProjectionDistance () const |
float | GetFarClip () const |
int | GetViewportWidth () const |
int | GetViewportHeight () const |
float | GetViewportProjectionWidth () const |
float | GetViewportProjectionHeight () const |
const vec3 & | GetUpDirection () const |
const vec3 & | GetDirection () const |
const vec3 & | GetRightDirection () const |
const vec3 & | GetPosition () const |
const vec3 & | GetFocus () const |
const shared< frame_buffer > & | GetMainFrameBuffer () const |
const shared< frame_buffer > & | GetGBuffer () const |
const shared< frame_buffer > & | GetHDRFrameBuffer () const |
const shared< frame_buffer > & | GetBlurFrameBuffers (int Index=0) const |
void | SetProjectionType (camera_projection_type ProjectionType) |
void | SetFieldOfView (float FieldOfView) |
void | SetProjectionDistance (float ProjectionDistance) |
void | SetFarClip (float FarClip) |
void | SetViewportWidth (int ViewportWidth) |
void | SetViewportHeight (int ViewportHeight) |
void | SetUpDirection (const vec3 &UpDirection) |
void | SetDirection (const vec3 &Direction) |
void | SetPosition (const vec3 &Position) |
void | SetFocus (const vec3 &Focus) |
void | SetView (const vec3 &Position, const vec3 &Focus, const vec3 &UpDirection) |
void | SetRenderToSwapChain (bool IsSwapChainTarget) |
camera (camera_projection_type ProjectionType, camera_effects Effects={}) | |
~camera () | |
camera & | Resize (int ViewportWidth, int ViewportHeight) |
camera & | Rotate (const vec3 &Axis, degrees Angle) |
camera & | Move (const vec3 &MoveVector) |
Public Attributes | |
camera_effects | Effects {} |
scl::camera::camera | ( | camera_projection_type | ProjectionType, |
camera_effects | Effects = {} |
||
) |
ProjectionType | - render camera projection type. |
Definition at line 171 of file camera.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
scl::camera & scl::camera::Move | ( | const vec3 & | MoveVector | ) |
MoveVector | - movement directions. |
Definition at line 210 of file camera.cpp.
scl::camera & scl::camera::Resize | ( | int | ViewportWidth, |
int | ViewportHeight | ||
) |
ViewportWidth,ViewportHeight | - new projection plane size in pixels. |
Definition at line 183 of file camera.cpp.
scl::camera & scl::camera::Rotate | ( | const vec3 & | Axis, |
degrees | Angle | ||
) |
Axis | - rotation axis. |
Angle | - rotation angle (in degree). |
Definition at line 193 of file camera.cpp.
void scl::camera::SetDirection | ( | const vec3 & | Direction | ) |
Camera forward direction setter function.
Definition at line 49 of file camera.cpp.
void scl::camera::SetFarClip | ( | float | FarClip | ) |
Distance to far clip plane getter function.
Definition at line 28 of file camera.cpp.
void scl::camera::SetFieldOfView | ( | float | FieldOfView | ) |
Field of view getter function.
Definition at line 18 of file camera.cpp.
void scl::camera::SetFocus | ( | const vec3 & | Focus | ) |
Camer focus point setter function.
Definition at line 62 of file camera.cpp.
void scl::camera::SetPosition | ( | const vec3 & | Position | ) |
Camer position setter function.
Definition at line 55 of file camera.cpp.
void scl::camera::SetProjectionDistance | ( | float | ProjectionDistance | ) |
Distance to near clip plane getter function.
Definition at line 23 of file camera.cpp.
void scl::camera::SetProjectionType | ( | camera_projection_type | ProjectionType | ) |
Camera projection type setter function.
Definition at line 13 of file camera.cpp.
void scl::camera::SetRenderToSwapChain | ( | bool | IsSwapChainTarget | ) |
IsSwapChainTarget | - flag, showing wheather camera main buffer is swap chain target or not |
Definition at line 79 of file camera.cpp.
void scl::camera::SetUpDirection | ( | const vec3 & | UpDirection | ) |
Camera up direction setter function.
Definition at line 43 of file camera.cpp.
Position | - camera position. |
Focus | - camera focusing point. |
UpDirection | - camera up direction. |
Definition at line 69 of file camera.cpp.
void scl::camera::SetViewportHeight | ( | int | ViewportHeight | ) |
Projection plane height in pixels getter function.
Definition at line 38 of file camera.cpp.
void scl::camera::SetViewportWidth | ( | int | ViewportWidth | ) |
Projection plane width in pixels getter function.
Definition at line 33 of file camera.cpp.
camera_effects scl::camera::Effects {} |