glOrtho problems - Wrap ?

I have a COM component which draws a WorldMap on CView and the point values on the world map ranges from (x1, x2, y1, y2) (-180, 180, -90, 90). The component has the facility to zoom pan etc. Also since this is a world map the edges are wrapped around, for eg after +180 and next point is 180. So I set the full ortho as (-180, 180, -90, 90) for the whole worldmap. In zoom/pan i change the ortho values.
The problem starts when the pan window hits the 'edges' of the world map so the ortho values may become (170, -170, -20, 20). Since x1 > x2 the drawing gets inverted/mirrored etc and opengl does not support an ortho setting like glOrtho(170, -170, 10, -10, -1000, 1000). I am at my wits end to find a elegant solution.
Any help would be greatly appreciated.
rraghu77Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NovaDenizenCommented:
I think you're depending on OpenGL for some application-level functionality it's not going to give you.  You need to manage the scaling and wraparound in your own code, without calling glOrtho on every update.  glOrtho just helps you do a simple linear coordinate mapping.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Game Programming

From novice to tech pro — start learning today.