How to make rounded rectangle in OpenGL, or any polygon with rounded corners?
You can also make triangles instead of rectangles to bevel the edges.