SimConnect_CameraSetUsingCameraDefinition
The SimConnect_CameraSetUsingCameraDefinition function is used to set specific parts of the camera struct based on a predefined camera definition from the cameras.cfg file. This function can only be used when the add-on camera has been acquired.
Syntax
HRESULT SimConnect_CameraSetUsingCameraDefinition(
HANDLE hSimConnect,
HANDLE hSimConnect, const char* cameraDefinitionName
);
Parameters
| Parameter | Description | Type |
|---|---|---|
| hSimConnect | Handle to a SimConnect object. | Integer |
| cameraDefinitionName | This is the Title string of a camera definition to use. | String |
Return Values
The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return value | Description |
|---|---|
| S_OK | The function succeeded. |
| E_FAIL | The function failed. |
Example
N/A
Remarks
The data that will be used from the given camera definition is as follows:
- Position - From the
InitialXyzparameter - Pbh - From the
InitialPbhparameter - FOV - From the
Initialzoomparameter
Related Topics
0/255