22 #ifndef TETRAEDGE_TE_TE_CAMERA_H 23 #define TETRAEDGE_TE_TE_CAMERA_H 25 #include "common/path.h" 26 #include "common/str.h" 29 #include "tetraedge/te/te_3d_object2.h" 30 #include "tetraedge/te/te_matrix4x4.h" 31 #include "tetraedge/te/te_references_counter.h" 32 #include "tetraedge/te/te_vector2s32.h" 33 #include "tetraedge/te/te_vector2f32.h" 34 #include "tetraedge/te/te_vector3f32.h" 43 void applyProjection();
44 void applyTransformations();
45 void buildOrthoMatrix();
46 void buildPerspectiveMatrix();
47 void buildPerspectiveMatrix2();
48 void buildPerspectiveMatrix3();
57 void orthogonalParams(
float f1,
float f2,
float f3,
float f4);
63 static void restore();
68 void viewport(
int x,
int y, uint width, uint height);
71 TeSignal0Param &onViewportChangedSignal() {
return _onViewportChangedSignal; }
73 void setFov(
float fov) { _fov = fov; }
74 void setOrthoPlanes(
float near,
float far) {
78 void setProjMatrixType(
int matrixType) { _projectionMatrixType = matrixType; }
79 int projMatrixType()
const {
return _projectionMatrixType; }
80 void setAspectRatio(
float val) { _aspectRatio = val; }
81 float orthoNearPlane()
const {
return _orthNearVal; }
82 float orthoFarPlane()
const {
return _orthFarVal; }
83 void setOrthoNear(
float f) { _orthNearVal = f; }
84 void setOrthoFar(
float f) { _orthFarVal = f; }
85 float getViewportHeight()
const {
return _viewportH; }
86 float getViewportWidth()
const {
return _viewportW; }
89 void updateProjectionMatrix();
91 int _projectionMatrixType;
104 float _orthogonalParamL;
105 float _orthogonalParamR;
106 float _orthogonalParamT;
107 float _orthogonalParamB;
116 #endif // TETRAEDGE_TE_TE_CAMERA_H Definition: te_camera.h:38
Definition: te_signal.h:40
Definition: detection.h:27
Definition: te_matrix4x4.h:37
Definition: te_3d_object2.h:36
Definition: te_vector2s32.h:31
Definition: te_vector3f32.h:33
Definition: te_vector2f32.h:32
Definition: te_references_counter.h:27