Hello! I'm trying to make an OpenGL based vector drawing library, similar to Cairo or Antigrain. Since I have a limited knowledge of scanlines and rasterization and the like, but a good knowledge of OpenGL, I've decided to use that to create my library. Since a good vector library needs gradient fill support, I will need to implement this. The problem is that I don't know exactly how to go about doing this. I could create a texture that contains the gradient texture, but this will limit the quality of the gradient fill for large objects (mipmapping can only do so much). Another problem with that is that generating the gradient texture may be very slow, especially for radial gradients. Does anyone have any suggestions as to how to fill objects with a gradient? Thanks for your help!