1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0025732: Visualization, TKOpenGl - back face culling should not affect textured font rendering

OpenGl_TextFormatter - orient triangles in normal counter-clockwise order (GL_CCW).

Test-cases for issue #25732
This commit is contained in:
kgv
2015-02-12 11:22:22 +03:00
committed by bugmaster
parent 2fe4f8f37b
commit 348ff75335
3 changed files with 59 additions and 8 deletions

View File

@@ -181,19 +181,19 @@ void OpenGl_TextFormatter::Result (NCollection_Vector<GLuint>& theTextures,
// apply floor on position to avoid blurring issues
// due to cross-pixel coordinates
aVerts.Append (floor(aRect.BottomLeft (aVec)));
aVerts.Append (floor(aRect.TopLeft (aVec)));
aVerts.Append (floor(aRect.TopRight (aVec)));
aTCrds.Append (aRectUV.BottomLeft (aVec));
aTCrds.Append (aRectUV.TopLeft (aVec));
aVerts.Append (floor(aRect.TopLeft (aVec)));
aVerts.Append (floor(aRect.BottomLeft (aVec)));
aTCrds.Append (aRectUV.TopRight (aVec));
aTCrds.Append (aRectUV.TopLeft (aVec));
aTCrds.Append (aRectUV.BottomLeft (aVec));
aVerts.Append (floor(aRect.BottomLeft (aVec)));
aVerts.Append (floor(aRect.TopRight (aVec)));
aVerts.Append (floor(aRect.BottomRight (aVec)));
aTCrds.Append (aRectUV.BottomLeft (aVec));
aTCrds.Append (aRectUV.TopRight (aVec));
aVerts.Append (floor(aRect.TopRight (aVec)));
aVerts.Append (floor(aRect.BottomLeft (aVec)));
aTCrds.Append (aRectUV.BottomRight (aVec));
aTCrds.Append (aRectUV.TopRight (aVec));
aTCrds.Append (aRectUV.BottomLeft (aVec));
}
}