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

0027617: Visualization, TKOpenGl - apply highlighting color without disabling lighting

Update colors in test cases
This commit is contained in:
kgv
2016-06-20 09:51:56 +03:00
committed by bugmaster
parent 2831708b17
commit f9ba5c4ddd
19 changed files with 297 additions and 216 deletions

View File

@@ -159,13 +159,11 @@ void VUserDrawObj::Render(const Handle(OpenGl_Workspace)& theWorkspace) const
aCtx->BindProgram (NULL);
// To test linking against OpenGl_Workspace and all aspect classes
const OpenGl_AspectLine* aLA = theWorkspace->AspectLine(0);
const OpenGl_AspectMarker* aMA = theWorkspace->AspectMarker(0);
const OpenGl_AspectMarker* aMA = theWorkspace->AspectMarker();
aMA->Type();
const OpenGl_AspectText* aTA = theWorkspace->AspectText(0);
const OpenGl_AspectText* aTA = theWorkspace->AspectText();
aTA->FontName();
TEL_COLOUR aColor = theWorkspace->NamedStatus & OPENGL_NS_HIGHLIGHT ?
*(theWorkspace->HighlightColor) : aLA->Color();
TEL_COLOUR aColor = theWorkspace->LineColor();
// Finally draw something to make sure UserDraw really works
glPushAttrib(GL_ENABLE_BIT);