BlockGame/gl/Camera.h
2022-02-05 21:44:31 +01:00

31 lines
583 B
C++

//
// 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);
void setRotation(double rotx, double roty);
void addRotaion(double rotx, double roty);
double getxangle() const;
double getyangle() const;
};
#endif //OPENGLTEST_CAMERA_H