Does anyone have experience overlaying text onto a wxGlCanvas?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Angela95
In need of some credit
In need of some credit
Posts: 1
Joined: Wed Jul 01, 2020 7:01 pm

Does anyone have experience overlaying text onto a wxGlCanvas?

Post by Angela95 »

Hi everyone,

I am trying to overlay some text onto a wxGlCanvas but I'm unsure how to do this. I cannot add any dependencies such as a font library so my options are quite limited.

I have read that OpenGL has support for bitmaps so I can possibly convert those to text but I have not been able to do this successfully. I went off of this: https://users.cs.jmu.edu/bernstdh/web/c ... l-text.php

If anyone has experience overlaying text onto a wxGlCanvas please let me know how you were able to do this because I have been scratching my head for days at this... If you have a working sample I can go off of that would be even better.

Thanks!
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Does anyone have experience overlaying text onto a wxGlCanvas?

Post by doublemax »

It's pretty old, but maybe this still works:
viewtopic.php?f=20&t=22453
(Make sure to get the latest version further down on that page).
Use the source, Luke!
Post Reply