API Reference > OdExport Classes > TD_HOOPS_COMMON_EXPORT Namespace > Functions > TD_HOOPS_COMMON_EXPORT::HoopsSetCamera Function
TD_HOOPS_COMMON_EXPORT::HoopsSetCamera Function
Syntax
C++
void HoopsSetCamera(OdGePoint3d ptCameraPos, OdGePoint3d ptCameraTarget, OdGeVector3d vrCameraUp, double dCameraWidth, double dCameraHeight, bool bPerspective, bool bStereoView, double dStereoDist, double dStereoAngle);

HoopsCommon.h

Parameters 
Description 
OdGePoint3d ptCameraPos 
[in] A three-dimensional point that determines the camera position.  
OdGePoint3d ptCameraTarget 
[in] A three-dimensional point that determines the camera target. [in] A three-dimensional vector that determines moving of the camera's vertical.  
double dCameraWidth 
[in] Width of the camera.  
double dCameraHeight 
[in] Height of the camera.  
bool bPerspective 
[in] A flag value that determines whether the camera is in perspective (if true) or in parallel (if false) mode.  
bool bStereoView 
[in] A flag value that determines whether the camera is in stereo mode. If this flag is equal to true, the camera is in stereo mode.  
double dStereoDist 
[in] A distance value for stereo mode. Currently this parameter is not used.  
double dStereoAngle 
[in] An angle value for stereo mode. Currently this parameter is not used. 

Sets parameters of a camera for the hoops engine. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.