摘要 |
A method, system, and computer-readable storage medium are disclosed for rendering Bézier curves using a graphics processing unit (GPU). In one embodiment, a triangle representing a quadratic Bézier curve is sent to the GPU, wherein the triangle comprises only one texture coordinate per vertex, and wherein each texture coordinate comprises a first coordinate of the respective vertex in a canonical space. In one embodiment, a second coordinate in the canonical space for each vertex sent to the GPU may be determined based on the first coordinate in the canonical space for the respective vertex. In one embodiment, the quadratic Bézier curve is rendered using the GPU.
|