[cairo] API Shakeup: cairo_current_matrix
David Reveman
davidr at novell.com
Thu Apr 7 11:53:09 PDT 2005
On Thu, 2005-04-07 at 14:05 -0400, Carl Worth wrote:
>
> On Thu, 07 Apr 2005 19:56:34 +0200, David Reveman wrote:
>
> > > So I think we'll just want a different matrix datatype
>
> > > there. cairo_projective_matrix_t ? cairo_pattern_set_project_matrix ?
>
> >
>
> > That would mean that you wont be able to use any of the cairo_matrix_*
>
> > functions with projective matrices. Having another set of matrix
>
> > functions for projective matrices doesn't seem like a good idea to me,
>
> > and having no utility functions for projective matrices seems even
>
> > worse.
>
>
>
> Yes, I understand both of these downsides.
>
>
>
> Do you have an alternate proposal?
>
Make cairo_matrix_t 3x3. Functions that currently take a 3x2 matrix will
just ignore the third row.
I think I like this better than having a separate
cairo_projective_matrix_t, but I'm not sure.
-David
More information about the cairo
mailing list