1
0
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:
isk
2015-11-11 08:50:04 +03:00
committed by bugmaster
parent ad77956498
commit 75c262a97a
5 changed files with 52 additions and 12 deletions

View File

@@ -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