Is it possible to thicken a quadratic Bézier curve using the GPU only?
I draw lots of quadratic Bézier curves in my OpenGL program. Right now, the curves are one-pixel thin and software-generated, because I'm at a rather early stage, and it is enough to see what works. Simply enough, given 3 control points ( P 0 to P 2 ), I evaluate the following equation with t varying from 0 to 1 (with steps of 1/8) in software and use GL_LINE_STRIP to link them together: B( t ) = (1 - t ) 2 P 0 + 2(1 - t ) t P 1 + t 2 P 2 Where B , obviously enough, results in a 2-dimensional vector. This approach worked 'well enough', since even my largest curves don't need much more than 8