mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0024131: TKOpenGL redesign GPU memory management for markers presentation
Introduce Point Sprites usage. Graphic3d_Group - drop Marker(),MarkerSet() methods - markers should be drawn using AddPrimitiveArray. Added new Draw Harness commands vcaps, vmarkerstest.
This commit is contained in:
@@ -81,19 +81,22 @@ void OpenGl_Group::SetAspectFace (const Handle(OpenGl_Context)& theCtx,
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
void OpenGl_Group::SetAspectMarker (const CALL_DEF_CONTEXTMARKER& theContext,
|
||||
void OpenGl_Group::SetAspectMarker (const Handle(OpenGl_Context)& theCtx,
|
||||
const CALL_DEF_CONTEXTMARKER& theAspect,
|
||||
const Standard_Boolean theIsGlobal)
|
||||
{
|
||||
if (theIsGlobal || myFirst == NULL)
|
||||
{
|
||||
if (myAspectMarker == NULL)
|
||||
{
|
||||
myAspectMarker = new OpenGl_AspectMarker();
|
||||
myAspectMarker->SetContext (theContext);
|
||||
}
|
||||
myAspectMarker->Init (theCtx, theAspect);
|
||||
}
|
||||
else
|
||||
{
|
||||
OpenGl_AspectMarker* anAspectMarker = new OpenGl_AspectMarker();
|
||||
anAspectMarker->SetContext (theContext);
|
||||
anAspectMarker->Init (theCtx, theAspect);
|
||||
AddElement (TelNil/*TelAspectMarker*/, anAspectMarker);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user