Closed Happe79 closed 5 years ago
Hi Happe,
It looks like you are using OpenGL immediate mode for your lines, whereas QuickFont uses "modern" OpenGL, i.e. shaders and vertex buffers. (see here for a brief explanation of the differences: https://stackoverflow.com/a/6734071) I have not tried combining the two, and I think that this is the source of the problem.
I would suggest removing your immediate mode OpenGL code and replacing it with the equivalent vertex buffers / shaders. Even though it might be more difficult in the beginning, it will be more efficient in the long run. Immediate mode has been deprecated in the latest OpenGL versions.
These two tutorials are a good introduction to modern OpenGL:
Hello Opcon,
Thanks a lot for the anwser. Yes , at the moment the base is implemented in immediate mode. However in most cases I use display list. I will check if I can change it to modern OpenGL.
THX Happe
Hello,
Thanks a lot for the Quickfont library. It helps me a lot.
I have some problems to embed Quickfont into an existing drawing context where lines an rectangles are drawn.
Every time I draw text like in the example all the other drawing primitives like lines and rectangles go away.
Here is my sample code (in the drawing routine):
I found out that it has something to do when the Shading is enabled. What is the best way to do this? Did I forget something.
Thanks alot for any help.
Best regards
Happe