SSpListener_GetCameraPlacement
You can use theSSpListener_GetCameraPlacement
function to get the position, orientation, and up vector of a listener.
OSStatus SSpListener_GetCameraPlacement ( SSpListenerReference inListenerReference, TQ3CameraPlacement *outCameraPlacement);
inListenerReference
- A listener reference.
outCameraPlacement
- On entry, a pointer to a camera placement structure. On exit, that structure is updated to specify the position, orientation, and up vector of the listener.
- function result
- A result code.
DESCRIPTION
TheSSpListener_GetCameraPlacement
function updates the camera placement structure pointed to by theoutCameraPlacement
parameter to indicate the position, orientation, and up vector of the listener specified by theinListenerReference
parameter. (The point of interest of the camera placement is the listener's position plus its orientation vector.) This function is provided as a convenient method for getting that information in a single function call.
- Note
- The
TQ3CameraPlacement
data type is defined by QuickDraw 3D. See 3D Graphics Programming With QuickDraw 3D for details.SEE ALSO
Instead of callingSSpListener_GetCameraPlacement
, you could callSSpListener_GetPosition
,SSpListener_GetOrientation
, andSSpListener_GetUpVector
.