QMedia
VR movie commands
|
|
| QM_SetViewCenter(movieRef; viewCenterX; viewCenterY):error | |||
|
|
movieRef | Longint | Movie reference |
|
|
viewCenterX | Real | Horizontal view center |
|
|
viewCenterY | Real | Vertical view center |
|
|
error | Longint | Error result |
Sets the current view center for a VR movie.
Parameter movieRef is the reference to the movie instance. The movie reference must have been previously obtained with a call to QM_NewMovieFromFile or QM_NewMovieFromURL. The movie must be currently assigned to a movie plug-in area.
Parameters viewCenterX and viewCenterY specify the movie's horizontal and vertical view center respectively.
This command applies on VR object nodes only.
Example
`Set view center of VR object movie $movie to {240,180} C_REAL($viewCenterH;$viewCenterV) $viewCenterH:=240$viewCenterV:=180 $err:=QM_SetViewCenter ($movie;$viewCenterH;$viewCenterV) |
Related commands
| QM_GetViewCenter | Returns the current view center. |
| QM_GetViewCenterRange | Returns the view center range. |