mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026790: Visualization, TKOpenGl - apply view resolution to the line width in OpenGl_Context::SetLineWidth()
Add ResolutionRatio() method in the Graphic3d_RenderingParams. Add SetResolutionRatio() method in the OpenGl_Context.
This commit is contained in:
@@ -79,6 +79,12 @@ public:
|
||||
AnaglyphRight.SetRow (3, aZero);
|
||||
}
|
||||
|
||||
//! Returns resolution ratio.
|
||||
Standard_ShortReal ResolutionRatio() const
|
||||
{
|
||||
return Resolution / static_cast<Standard_ShortReal> (THE_DEFAULT_RESOLUTION);
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
Graphic3d_RenderingMode Method; //!< specifies rendering mode, Graphic3d_RM_RASTERIZATION by default
|
||||
|
Reference in New Issue
Block a user