You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
364 B

4 years ago
  1. #pragma once
  2. #include"Vector3.h"
  3. class Ray;
  4. class Camera {
  5. public:
  6. Vector3 mPosition, mCenter, mUp, mUVector, mVVector, mUSpanVector, mVSpanVector;
  7. float mFOV, mAspect, mNearPlaneWidth, mNearPlaneHeight;
  8. Camera(float fov, float aspect);
  9. void LookAt(const Vector3& position, const Vector3& center, const Vector3& up);
  10. Ray GetRay(float u, float v);
  11. };