API Reference > Other Classes > OdAbstractViewPE Class > OdAbstractViewPE Methods > OdAbstractViewPE::setRenderMode Method
OdAbstractViewPE::setRenderMode Method
Syntax
C++
virtual void setRenderMode(OdRxObject* pViewport, OdDb::RenderMode renderMode) const = 0;
Parameters 
Description 
OdRxObject* pViewport 
[in] Pointer to the Viewport object. 
OdDb::RenderMode renderMode 
[in] Render mode.  

Sets the render mode for the specified Viewport object.

renderMode must be one of the following: 

 

Name 
Value 
Description 
kBoundingBox 
-1 
Bounding box. For internal use only. 
k2DOptimized 
Standard display. Optimized for 2D. 
kWireframe 
Standard display. Uses 3D pipeline. 
kHiddenLine 
Wireframe display. Hidden lines removed. 
kFlatShaded 
Faceted display. One color per face. 
kGouraudShaded 
Smooth shaded display. Colors interpolated between vertices. 
kFlatShadedWithWireframe 
Faceted display with wireframe overlay. 
kGouraudShadedWithWireframe 
Smooth shaded display with wireframe overlay. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.