From: <hug...@li...> - 2011-03-06 13:20:51
|
branch: details: http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/hgrepo/h/hu/hugin/hugin/rev/8c47403bf194 changeset: 5083:8c47403bf194 user: tmodes date: Sun Mar 06 14:15:28 2011 +0100 description: Draw panosphere above images and not below [726186] diffstat: src/hugin1/hugin/PanosphereSphereTool.cpp | 8 ++++---- src/hugin1/hugin/PanosphereSphereTool.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diffs (42 lines): diff -r f3a428981466 -r 8c47403bf194 src/hugin1/hugin/PanosphereSphereTool.cpp --- a/src/hugin1/hugin/PanosphereSphereTool.cpp Wed Mar 02 18:36:49 2011 +0100 +++ b/src/hugin1/hugin/PanosphereSphereTool.cpp Sun Mar 06 14:15:28 2011 +0100 @@ -42,12 +42,12 @@ void PanosphereSphereTool::Activate() { - ((PanosphereOverviewToolHelper*)helper)->NotifyMe(PanosphereOverviewToolHelper::DRAW_OVER_IMAGES_BACK, this); - ((PanosphereOverviewToolHelper*)helper)->NotifyMe(PanosphereOverviewToolHelper::DRAW_OVER_IMAGES_FRONT, this); + ((PanosphereOverviewToolHelper*)helper)->NotifyMe(PanosphereOverviewToolHelper::DRAW_UNDER_IMAGES_BACK, this); + ((PanosphereOverviewToolHelper*)helper)->NotifyMe(PanosphereOverviewToolHelper::DRAW_UNDER_IMAGES_FRONT, this); } -void PanosphereSphereTool::AfterDrawImagesBackEvent() +void PanosphereSphereTool::BeforeDrawImagesBackEvent() { glDisable(GL_TEXTURE_2D); @@ -64,7 +64,7 @@ } -void PanosphereSphereTool::AfterDrawImagesFrontEvent() +void PanosphereSphereTool::BeforeDrawImagesFrontEvent() { diff -r f3a428981466 -r 8c47403bf194 src/hugin1/hugin/PanosphereSphereTool.h --- a/src/hugin1/hugin/PanosphereSphereTool.h Wed Mar 02 18:36:49 2011 +0100 +++ b/src/hugin1/hugin/PanosphereSphereTool.h Sun Mar 06 14:15:28 2011 +0100 @@ -33,8 +33,8 @@ void Activate(); PanosphereSphereTool(PanosphereOverviewToolHelper *helper) : PanosphereOverviewTool(helper) {} - void AfterDrawImagesBackEvent(); - void AfterDrawImagesFrontEvent(); + void BeforeDrawImagesBackEvent(); + void BeforeDrawImagesFrontEvent(); protected: }; |