mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 14:10:11 +00:00
ab8f16961e
Apply clang-format-all.sh using the _clang-format file through all the cpp/.h files. make sure not to apply it to certain serialization structures, since some parser expects the * as part of the name, instead of type. This commit contains no other changes aside from adding and applying clang-format-all.sh
47 lines
1.6 KiB
C
47 lines
1.6 KiB
C
#ifndef COMMON_CAMERA_INTERFACE_H
|
|
#define COMMON_CAMERA_INTERFACE_H
|
|
|
|
struct CommonCameraInterface
|
|
{
|
|
virtual ~CommonCameraInterface() {}
|
|
virtual void getCameraProjectionMatrix(float m[16]) const = 0;
|
|
virtual void getCameraViewMatrix(float m[16]) const = 0;
|
|
|
|
virtual void setVRCamera(const float viewMat[16], const float projectionMatrix[16]) = 0;
|
|
virtual void disableVRCamera() = 0;
|
|
virtual bool isVRCamera() const = 0;
|
|
virtual void setVRCameraOffsetTransform(const float offset[16]) = 0;
|
|
|
|
virtual void getCameraTargetPosition(float pos[3]) const = 0;
|
|
virtual void getCameraPosition(float pos[3]) const = 0;
|
|
|
|
virtual void getCameraTargetPosition(double pos[3]) const = 0;
|
|
virtual void getCameraPosition(double pos[3]) const = 0;
|
|
|
|
virtual void setCameraTargetPosition(float x, float y, float z) = 0;
|
|
virtual void setCameraDistance(float dist) = 0;
|
|
virtual float getCameraDistance() const = 0;
|
|
|
|
virtual void setCameraUpVector(float x, float y, float z) = 0;
|
|
virtual void getCameraUpVector(float up[3]) const = 0;
|
|
virtual void getCameraForwardVector(float fwd[3]) const = 0;
|
|
|
|
///the setCameraUpAxis will call the 'setCameraUpVector' and 'setCameraForwardVector'
|
|
virtual void setCameraUpAxis(int axis) = 0;
|
|
virtual int getCameraUpAxis() const = 0;
|
|
|
|
virtual void setCameraYaw(float yaw) = 0;
|
|
virtual float getCameraYaw() const = 0;
|
|
|
|
virtual void setCameraPitch(float pitch) = 0;
|
|
virtual float getCameraPitch() const = 0;
|
|
|
|
virtual void setAspectRatio(float ratio) = 0;
|
|
virtual float getAspectRatio() const = 0;
|
|
|
|
virtual float getCameraFrustumFar() const = 0;
|
|
virtual float getCameraFrustumNear() const = 0;
|
|
};
|
|
|
|
#endif //COMMON_CAMERA_INTERFACE_H
|