1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0022819: Redesign of OpenGl driver

This commit is contained in:
SAN, KGV
2012-02-03 12:59:15 +00:00
committed by bugmaster
parent 1d2b1ccb45
commit 2166f0fad8
362 changed files with 19749 additions and 57863 deletions

View File

@@ -0,0 +1,37 @@
// File: OpenGl_AspectMarker.cxx
// Created: 14 July 2011
// Author: Sergey ZERCHANINOV
// Copyright: OPEN CASCADE 2011
#include <OpenGl_AspectMarker.hxx>
static const TEL_COLOUR myDefaultColor = {{ 1.0F, 1.0F, 1.0F, 1.0F }};
/*----------------------------------------------------------------------*/
OpenGl_AspectMarker::OpenGl_AspectMarker ()
: myColor(myDefaultColor),
myType(Aspect_TOM_PLUS),
myScale(1.0F)
{}
/*----------------------------------------------------------------------*/
void OpenGl_AspectMarker::SetContext (const CALL_DEF_CONTEXTMARKER &AContext)
{
myColor.rgb[0] = (float) AContext.Color.r;
myColor.rgb[1] = (float) AContext.Color.g;
myColor.rgb[2] = (float) AContext.Color.b;
myColor.rgb[3] = 1.0f;
myType = (Aspect_TypeOfMarker) AContext.MarkerType;
myScale = (float) AContext.Scale;
}
/*----------------------------------------------------------------------*/
void OpenGl_AspectMarker::Render (const Handle(OpenGl_Workspace) &AWorkspace) const
{
AWorkspace->SetAspectMarker(this);
}
/*----------------------------------------------------------------------*/