CommonCameraInterface.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef COMMON_CAMERA_INTERFACE_H
  2. #define COMMON_CAMERA_INTERFACE_H
  3. struct CommonCameraInterface
  4. {
  5. virtual void getCameraProjectionMatrix(float m[16])const = 0;
  6. virtual void getCameraViewMatrix(float m[16]) const = 0;
  7. virtual void getCameraTargetPosition(float pos[3]) const = 0;
  8. virtual void getCameraPosition(float pos[3]) const = 0;
  9. virtual void getCameraTargetPosition(double pos[3]) const = 0;
  10. virtual void getCameraPosition(double pos[3]) const = 0;
  11. virtual void setCameraTargetPosition(float x,float y,float z) = 0;
  12. virtual void setCameraDistance(float dist) = 0;
  13. virtual float getCameraDistance() const = 0;
  14. virtual void setCameraUpVector(float x,float y, float z) = 0;
  15. virtual void getCameraUpVector(float up[3]) const = 0;
  16. ///the setCameraUpAxis will call the 'setCameraUpVector' and 'setCameraForwardVector'
  17. virtual void setCameraUpAxis(int axis) = 0;
  18. virtual int getCameraUpAxis() const = 0;
  19. virtual void setCameraYaw(float yaw) = 0;
  20. virtual float getCameraYaw() const = 0;
  21. virtual void setCameraPitch(float pitch) = 0;
  22. virtual float getCameraPitch() const = 0;
  23. virtual void setAspectRatio(float ratio) = 0;
  24. virtual float getAspectRatio() const = 0;
  25. };
  26. #endif //COMMON_CAMERA_INTERFACE_H