2022-02-05 20:44:31 +00:00
|
|
|
//
|
|
|
|
// Created by lukas on 05.02.22.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OPENGLTEST_CAMERA_H
|
|
|
|
#define OPENGLTEST_CAMERA_H
|
|
|
|
|
|
|
|
|
|
|
|
class Camera {
|
|
|
|
private:
|
|
|
|
double x, y, z, rx, ry, width, height;
|
|
|
|
|
|
|
|
void updateCameraPos();
|
|
|
|
public:
|
|
|
|
Camera(double width, double height);
|
|
|
|
|
|
|
|
void setWindowSize(double width, double height);
|
|
|
|
|
|
|
|
void setPos(double x, double y, double z);
|
|
|
|
void addPos(double x, double y, double z);
|
|
|
|
|
2022-02-10 17:24:56 +00:00
|
|
|
double getXpos();
|
|
|
|
double getYpos();
|
|
|
|
double getZpos();
|
|
|
|
|
2022-02-05 20:44:31 +00:00
|
|
|
void setRotation(double rotx, double roty);
|
|
|
|
void addRotaion(double rotx, double roty);
|
|
|
|
|
|
|
|
double getxangle() const;
|
|
|
|
double getyangle() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //OPENGLTEST_CAMERA_H
|