API Reference > OdDb Classes > OdDbViewport Class > OdDbViewport Methods > OdDbViewport::setSun Method
OdDbViewport::setSun Method
Syntax
C++
OdDbObjectId setSun(OdDbSun* pSun);
Parameters 
Description 
OdDbSun* pSun 
[in] Pointer to a sun object. 

Object identifier of the sun in the database.

Sets the sun (distant light) for this viewport. 

 

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