OpenPolygon
1.0.0
OpenPolygon is a Rendering Engine
|
#include <camera.h>
Public Types | |
enum | Direction { FORWARD, BACKWARD, LEFT, RIGHT } |
The Direction enum. More... | |
enum | CameraMode { FLY_MODE, EGO_MODE } |
Public Member Functions | |
Camera (void) | |
Camera. More... | |
Camera (const std::string &camera_name) | |
Camera. More... | |
void | setScissorView (Vector4f sci) |
setView More... | |
void | setScissorView (int x, int y, int width, int height) |
void | setName (const std::string &name) |
setName More... | |
void | setMode (CameraMode mode) |
setMode More... | |
void | invertPitch (void) |
void | invertYaw (void) |
Vector4f | getView (void) |
getView More... | |
std::string | getName (void) |
getName More... | |
void | AutoRotation (Position *object) |
follow More... | |
void | AutoRotationReset (void) |
void | move (Direction dir, float speed) |
move More... | |
void | move_ex (Camera::Direction dir, float distance, Position *object) |
float | getPitch (void) |
getPitch More... | |
float | getYaw (void) |
getYaw More... | |
void | transform (void) |
transform More... | |
void | setPitch (float value) |
setPitch More... | |
void | setYaw (float value) |
setYaw More... | |
![]() | |
Position (const std::string &component_name) | |
void | setPosition (const Vector3f &position) |
setPosition More... | |
void | setRotation (const Vector3f &rotation) |
setRotation More... | |
void | setScale (const Vector3f &scale) |
setScale More... | |
void | setQuanternion (const Vector4f &quant) |
setQuanternion More... | |
void | setMatrix (const glm::mat4 &model_matrix) |
setMatrix More... | |
const Vector3f & | getPosition (void) const |
getPosition More... | |
const Vector3f & | getRotation (void) const |
getRotation More... | |
const Vector3f & | getScale (void) const |
getScale More... | |
const Vector4f & | getQuanternion (void) const |
getQuanternion More... | |
glm::quat | getQuat () const |
getQuat More... | |
glm::mat4 | getTranslationMatrix (glm::vec3 vector) |
glm::mat4 | getTranslationMatrix (void) const |
getTranslationMatrix More... | |
glm::mat4 | getRotationMatrix (void) const |
getRotationMatrix More... | |
glm::mat4 | getRotationMatrix (const Vector3f &vector) |
glm::mat4 | getMatrix (void) const |
getMatrix More... | |
glm::mat4 | getNormalMatrix (glm::mat4 model_view) const |
getNormalMatrix More... | |
void | camtransformation (void) |
camtransformation More... | |
void | transformation (void) |
transformation More... | |
Protected Member Functions | |
float | getRadian (float angle) |
getRadian More... | |
The Camera class.
The Direction enum.
Movement directions
|
explicit |
std::string Camera::getName | ( | void | ) |
float Camera::getPitch | ( | void | ) |
getPitch
Return Pitch value
|
inlineprotected |
getRadian
Calc Angle to Radian
angle |
Vector4f Camera::getView | ( | void | ) |
getView
Return Scissor Values
float Camera::getYaw | ( | void | ) |
getYaw
Return Yaw Value
void Camera::move | ( | Camera::Direction | dir, |
float | speed | ||
) |
void Camera::setMode | ( | CameraMode | mode | ) |
setMode
mode |
void Camera::setName | ( | const std::string & | name | ) |
void Camera::setPitch | ( | float | value | ) |
setPitch
Set Pitch value
void Camera::setScissorView | ( | Vector4f | sci | ) |
void Camera::setYaw | ( | float | value | ) |
setYaw
Set Yaw value
value |
void Camera::transform | ( | void | ) |
transform
Camera transformation