Newer
Older
Import / applications / HighwayDash / ports / Game / Camera.h
@John Ryland John Ryland on 22 Dec 2020 545 bytes import NUC files
#ifndef CAMERA_H
#define CAMERA_H


class Camera
{
public:
  Camera()  {}
  ~Camera() {}

  void build(float fov, float aspect, float rotate[3], float scale, float translateX, float translateY, float translateZ, bool ortho = false);
  bool isClipped(float x, float y, float z, float w, float h, float d);

  // For debugging, kind of expensive
  void calcFrustum(float a_frustumPts[8][4]);

  float m_projectionMatrix[16];
  float m_cameraMatrix[16];
  float m_modelViewProjectionMatrix[16];
  float m_clipPlanes[6][4];
};


#endif // CAMERA_H