mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:17:45 +02:00
Cleanup camera docs
This commit is contained in:
parent
ec86b82079
commit
7e2bb0e5ed
1 changed files with 5 additions and 8 deletions
|
@ -35,9 +35,6 @@ __attribute__((unused))
|
||||||
#endif
|
#endif
|
||||||
static int cameraModeId = qRegisterMetaType<CameraMode>();
|
static int cameraModeId = qRegisterMetaType<CameraMode>();
|
||||||
|
|
||||||
/**jsdoc
|
|
||||||
* @global
|
|
||||||
*/
|
|
||||||
class Camera : public QObject {
|
class Camera : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
@ -96,9 +93,9 @@ public slots:
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* Compute a {PickRay} based on the current camera configuration and the position x,y on the screen.
|
* Compute a {PickRay} based on the current camera configuration and the position x,y on the screen.
|
||||||
* @function Camera.computePickRay
|
* @function Camera.computePickRay
|
||||||
* @param {float} x
|
* @param {float} x X-coordinate on screen.
|
||||||
* @param {float} y
|
* @param {float} y Y-coordinate on screen.
|
||||||
* @return {PickRay}
|
* @return {PickRay} The computed {PickRay}.
|
||||||
*/
|
*/
|
||||||
PickRay computePickRay(float x, float y);
|
PickRay computePickRay(float x, float y);
|
||||||
|
|
||||||
|
@ -106,7 +103,7 @@ public slots:
|
||||||
* Set the camera to look at position <code>position</code>. Only works while in <code>independent</code>.
|
* Set the camera to look at position <code>position</code>. Only works while in <code>independent</code>.
|
||||||
* camera mode.
|
* camera mode.
|
||||||
* @function Camera.lookAt
|
* @function Camera.lookAt
|
||||||
* @param {Vec3} position position to look at
|
* @param {Vec3} Position Position to look at.
|
||||||
*/
|
*/
|
||||||
void lookAt(const glm::vec3& position);
|
void lookAt(const glm::vec3& position);
|
||||||
|
|
||||||
|
@ -114,7 +111,7 @@ public slots:
|
||||||
* Set the camera to continue looking at position <code>position</code>.
|
* Set the camera to continue looking at position <code>position</code>.
|
||||||
* Only works while in `independent` camera mode.
|
* Only works while in `independent` camera mode.
|
||||||
* @function Camera.keepLookingAt
|
* @function Camera.keepLookingAt
|
||||||
* @param {Vec3} position position to look at
|
* @param {Vec3} position Position to keep looking at.
|
||||||
*/
|
*/
|
||||||
void keepLookingAt(const glm::vec3& position);
|
void keepLookingAt(const glm::vec3& position);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue