Skip to content

Commit

Permalink
remove old behavior data
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy committed Jan 17, 2025
1 parent 96dd052 commit d2cf117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ OglSceneFrame::OglSceneFrame()
, d_style(initData(&d_style, defaultStyle, "style", ("Style of the frame\n" + Style::dataDescription()).c_str()))
, d_alignment(initData(&d_alignment, defaultAlignment, "alignment", ("Alignment of the frame in the view\n" + Alignment::dataDescription()).c_str()))
, d_viewportSize(initData(&d_viewportSize, 150, "viewportSize", "Size of the viewport where the frame is rendered"))
, d_solidBackground(initData(&d_solidBackground, false, "solidBackground", "If true, an opaque bkacground will be rendered; otherwise the frame is rendered on top on the normal viewport."))
{}

void OglSceneFrame::drawArrows(const core::visual::VisualParams* vparams)
Expand Down Expand Up @@ -132,16 +131,8 @@ void OglSceneFrame::doDrawVisual(const core::visual::VisualParams* vparams)
}

glEnable(GL_SCISSOR_TEST);
if(d_solidBackground.getValue())
{
// reset color and depth for the mini viewport (setting a background and making render on front)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
}
else
{
// only reset depth to appear on front
glClear(GL_DEPTH_BUFFER_BIT );
}
// only reset depth to appear on front
glClear(GL_DEPTH_BUFFER_BIT );

glMatrixMode(GL_PROJECTION);
vparams->drawTool()->pushMatrix();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class SOFA_GL_COMPONENT_RENDERING3D_API OglSceneFrame : public core::visual::Vis

Data<Alignment> d_alignment; ///< Alignment of the frame in the view
Data<int> d_viewportSize; ///< Size of the viewport where the frame is rendered
Data<bool> d_solidBackground;

OglSceneFrame();

Expand Down

0 comments on commit d2cf117

Please sign in to comment.