2015-04-16 22:16:13 +00:00
|
|
|
#ifndef COMMON_CAMERA_INTERFACE_H
|
|
|
|
#define COMMON_CAMERA_INTERFACE_H
|
|
|
|
|
|
|
|
struct CommonCameraInterface
|
|
|
|
{
|
|
|
|
virtual void getCameraProjectionMatrix(float m[16])const = 0;
|
|
|
|
virtual void getCameraViewMatrix(float m[16]) const = 0;
|
|
|
|
|
|
|
|
virtual void getCameraTargetPosition(float pos[3]) const = 0;
|
|
|
|
virtual void getCameraPosition(float pos[3]) const = 0;
|
|
|
|
|
2015-04-29 20:21:26 +00:00
|
|
|
virtual void getCameraTargetPosition(double pos[3]) const = 0;
|
|
|
|
virtual void getCameraPosition(double pos[3]) const = 0;
|
|
|
|
|
2015-04-16 22:16:13 +00:00
|
|
|
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;
|
|
|
|
///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;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //COMMON_CAMERA_INTERFACE_H
|
|
|
|
|