List of all members.
Public Member Functions |
| | Camera (void) |
| | ~Camera (void) |
| void | SetProjection (float left, float right, float bottom, float top, float near_plane, float far_plane) |
| void | SetProjection (float fovy, float aspect_ratio, float near_plane, float far_plane) |
| glm::mat4 | GetProjection () |
| glm::mat4 | GetViewMatrix () |
| glm::mat4 | GetViewMatrix (unsigned int i) |
| void | SetViewMatrix (glm::vec3 p, glm::vec3 l, glm::vec3 u) |
| void | SetViewMatrix (glm::mat4 matrix) |
| glm::mat4 | GetOldProjection () |
| glm::mat4 | GetOldViewMatrix () |
| glm::vec3 | GetPosition () |
| glm::vec3 | GetUpVector () |
| glm::vec3 | GetCenterPositon () |
| void | SetActAsOldViewMatrix () |
| void | SetActAsOldProjectionMatrix () |
| glm::mat4 | LookAt (glm::vec3 eye, glm::vec3 center, glm::vec3 up) |
| int | SetViewport (int width, int height) |
| int | GetWidth () |
| int | GetHeight () |
| void | SetEnvironmentMapping (bool env) |
| void | SetViewMatrix (int z, glm::vec3 eye, glm::vec3 center, glm::vec3 up) |
Constructor & Destructor Documentation
Member Function Documentation
| glm::vec3 Camera::GetCenterPositon |
( |
| ) |
|
Returns Center Positions
- Returns:
- Matrix
| int Camera::GetHeight |
( |
| ) |
|
| glm::mat4 Camera::GetOldProjection |
( |
| ) |
|
Returns Projection Matrix from previous Frame
- Returns:
- matrix ... Matrix
| glm::mat4 Camera::GetOldViewMatrix |
( |
| ) |
|
Returns View Matrix from previous Frame
- Returns:
- matrix ... Matrix
| glm::vec3 Camera::GetPosition |
( |
| ) |
|
Returns Viewpoing Positions
- Returns:
- Matrix
| glm::mat4 Camera::GetProjection |
( |
| ) |
|
Return Projection Matrix
- Returns:
- Projection Matrix
| glm::vec3 Camera::GetUpVector |
( |
| ) |
|
Returns UpVector
- Returns:
- Matrix
| glm::mat4 Camera::GetViewMatrix |
( |
| ) |
|
Return ViewMatrix
- Returns:
- View Matrix
| glm::mat4 Camera::GetViewMatrix |
( |
unsigned int |
i | ) |
|
Return ViewMatrix
- Returns:
- View Matrix
| glm::mat4 Camera::LookAt |
( |
glm::vec3 |
eye, |
|
|
glm::vec3 |
center, |
|
|
glm::vec3 |
up |
|
) |
| |
| void Camera::SetActAsOldProjectionMatrix |
( |
| ) |
|
Sets last frame projection matrix
| void Camera::SetActAsOldViewMatrix |
( |
| ) |
|
Sets last frame viewing matrix
| void Camera::SetEnvironmentMapping |
( |
bool |
env | ) |
|
Enables environment mapping
| void Camera::SetProjection |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top, |
|
|
float |
near_plane, |
|
|
float |
far_plane |
|
) |
| |
Sets Projection matrix Orthogonoal
- Parameters:
-
| left | linke Camera Länge |
| right | rechte Camera Länge |
| bottom | untere Camera Länge |
| top | obere Camera Länge |
| near_plane | near Clippingplane |
| far_plane | far Clippingplane |
| void Camera::SetProjection |
( |
float |
fovy, |
|
|
float |
aspect_ratio, |
|
|
float |
near_plane, |
|
|
float |
far_plane |
|
) |
| |
Sets Projection matrix Projections
- Parameters:
-
| fovy | fovy |
| aspect_ratio | aspect ratio |
| near_plane | near Clippingplane |
| far_plane | far Clippingplane |
| void Camera::SetViewMatrix |
( |
glm::vec3 |
p, |
|
|
glm::vec3 |
l, |
|
|
glm::vec3 |
u |
|
) |
| |
Set Viewmatrix
- Parameters:
-
| p | ... Eye-point |
| p | ... Center point |
| p | ... Up Vektor |
| void Camera::SetViewMatrix |
( |
glm::mat4 |
matrix | ) |
|
Set Viewmatrix
- Parameters:
-
| void Camera::SetViewMatrix |
( |
int |
z, |
|
|
glm::vec3 |
eye, |
|
|
glm::vec3 |
center, |
|
|
glm::vec3 |
up |
|
) |
| |
Sets Viewing Matrix for each plane of the environment map
| int Camera::SetViewport |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
OpenGL SetViewport Method
The documentation for this class was generated from the following files: