mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 21:30:09 +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
61 lines
1.8 KiB
C
61 lines
1.8 KiB
C
#ifndef SIMPLE_CAMERA_H
|
|
#define SIMPLE_CAMERA_H
|
|
|
|
#include "../CommonInterfaces/CommonCameraInterface.h"
|
|
|
|
struct SimpleCamera : public CommonCameraInterface
|
|
{
|
|
struct SimpleCameraInternalData* m_data;
|
|
|
|
SimpleCamera();
|
|
virtual ~SimpleCamera();
|
|
|
|
void update();
|
|
virtual void getCameraProjectionMatrix(float m[16]) const;
|
|
virtual void getCameraViewMatrix(float m[16]) const;
|
|
|
|
virtual void setVRCamera(const float viewMat[16], const float projectionMatrix[16]);
|
|
virtual bool getVRCamera(float viewMat[16], float projectionMatrix[16]);
|
|
|
|
virtual void setVRCameraOffsetTransform(const float offset[16]);
|
|
virtual void disableVRCamera();
|
|
|
|
virtual bool isVRCamera() const;
|
|
|
|
virtual void getCameraTargetPosition(float pos[3]) const;
|
|
virtual void getCameraPosition(float pos[3]) const;
|
|
|
|
virtual void getCameraTargetPosition(double pos[3]) const;
|
|
virtual void getCameraPosition(double pos[3]) const;
|
|
|
|
virtual void setCameraTargetPosition(float x, float y, float z);
|
|
virtual void setCameraDistance(float dist);
|
|
virtual float getCameraDistance() const;
|
|
|
|
virtual void setCameraUpVector(float x, float y, float z);
|
|
void getCameraUpVector(float up[3]) const;
|
|
|
|
void getCameraForwardVector(float fwd[3]) const;
|
|
|
|
///the setCameraUpAxis will call the 'setCameraUpVector' and 'setCameraForwardVector'
|
|
virtual void setCameraUpAxis(int axis);
|
|
virtual int getCameraUpAxis() const;
|
|
|
|
virtual void setCameraYaw(float yaw);
|
|
virtual float getCameraYaw() const;
|
|
|
|
virtual void setCameraPitch(float pitch);
|
|
virtual float getCameraPitch() const;
|
|
|
|
virtual void setAspectRatio(float ratio);
|
|
virtual float getAspectRatio() const;
|
|
|
|
virtual float getCameraFrustumFar() const;
|
|
virtual float getCameraFrustumNear() const;
|
|
|
|
virtual void setCameraFrustumFar(float far);
|
|
virtual void setCameraFrustumNear(float near);
|
|
};
|
|
|
|
#endif //SIMPLE_CAMERA_H
|