micahpearlman / MonkVG

MonkVG is an OpenVG 1.1 like vector graphics API implementation optimized for game use currently using an OpenGL ES backend that should be compatible with any HW that supports OpenGL ES 2.0 which includes most iOS and Android devices.
Other
376 stars 66 forks source link

The base of gradient paints that match up with SWF data. #3

Closed talentless closed 12 years ago

talentless commented 12 years ago

SWF gradient configs don't have information about the height and width of the surface they are painting so I pass in the 2x3 matrix that configures the gradient and then apply it creating the gl paint.

Not totally in love with this approach. I'd be willing to stick this in a branch until I redesign it. The alternative approach is to delay config of the pain until the shape the gradient is being applied to is known. Probably won't be able to get to it for a week or so due to other projects.