API Reference > OdDb Classes > OdDbViewport Class > OdDbViewport Methods > OdDbViewport::setRenderMode Method
OdDbViewport::setRenderMode Method
Syntax
C++
void setRenderMode(OdDb::RenderMode renderMode);
Parameters 
Description 
OdDb::RenderMode renderMode 
[in] Render mode. 

Set the render mode of this Viewport object (DXF 281).

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–2021. Open Design Alliance. All rights reserved.