Shocker's picture

Triangulation from closed paths .

Today, OpenGL has updated to 4.1 and 3.3.
It can express high-quality graphics. But recently, it lost GLU functions. So tessellation method can't be used.
Therefore, it has been difficult to make polygonfont .

Now I made a method that tessellates from closed paths into triangles .
It also have a method that creates closed paths of outline fonts .
This code is not excellent and not improved so much, but if there is someone who wants to create polygonfont, please use this freely.

Thank you .


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shocker's picture
c2woody's picture

Wow, the result looks nice though I can't really follow the code :)

There was a crash when executing a debug build, you should add an early exit to your resize/paint method that check if the Load function was already called (otherwise OpenGL calls will throw an exception, and Resize may be triggered before Load finished).

Thanks for posting your code!

Shocker's picture

I couldn't know that bug because Load functions makes no problem in my environment.
Executing in various environment can notice a lot of problem for us .
Thank you for noticing for me .