troubleshooting Question

How to overlay a bitmap on an image in OpenGL

Avatar of loengrin
loengrinFlag for Canada asked on
Game ProgrammingC++
8 Comments2 Solutions1261 ViewsLast Modified:
I would like to know the correct way to overlay a bitmap, such as an alphabetic character or an icon, on top of a bmp image that is drawn with glDrawPixels. I have tried using glBitmap to draw the bitmap and it works fine if I place the bitmap near the image origin. However, if the bitmap is placed some distance from the origin it starts to appear scrambled. The farther away from the origin the bitmap is placed the more scrambled it gets. However, if I do not display the underlying image, I can place the bitmap anywhere on the screen and it looks fine. Can anyone tell me why this might be happening?  Thanks very much.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros