fsCameraGet
The fsCameraGet function is used to get the current camera settings, regardless of whether it has been acquired or not.
Syntax
bool fsCameraGet(
int referential,
FsCameraData* pOut
);
Members
| Parameters | Description |
|---|---|
referential |
The referential to use for the camera position values (including the camera "target" position values, if used), can be one of the following
|
pOut |
This will contain a pointer to a FsCameraData struct with information on the current camera. The memory for this must be allocated by the client. |
Return Values
The function returns false if it was not possible to send the request, otherwise it will return true.
Example
Request camera data:
FsCameraData cameraData = {};
if (!fsCameraGet(FS_POSITION_REFERENTIAL_AIRCRAFT, &cameraData))
{
printf("Error getting camera data");
return true;
}
Remarks
N/A
Related Topics
0/255