I'd like to render concave polygons using C, OpenGL on a Linux system. Can anyone provide sample code how this would be done in the latest version of OpenGL (Let's say OpenGL 4.5 which according to glxinfo NVIDIA driver 352.41 supports, but whatever 3+ version you like that supports extensions implemented in hardware on Linux at least by NVIDIA).
This question on stackoverflow points to use GLU tesselation which is deprecated. Using stencil buffers approach which I don't fully understand, but if this is the "industry accepted standard" of doing this now, I'll put more effort into understanding.
This post refers to a .NET library which I don't want to use on Linux and C, tesselation shader which I would love an example how to use but all examples I can find start with convex patches, and the deprecated library moved for posterity into another repository which I'd like to move away from.
Thanks.