On Wed, 2006-07-12 at 10:37 +0200, Murray Cumming wrote: > > On Wed, 2006-07-12 at 08:47 +0200, Murray Cumming wrote: > >> > Hi; > >> > > >> > On Tue, 2006-07-11 at 12:04 +0300, Jorn Baayen wrote: > >> >> > > >> >> > True. That's because cairo's public API uses floating point. Do > >> you > >> >> > have any idea how Pango can do better here? > >> >> > >> >> No :( > >> >> > >> > > >> > Neither that nice but; > >> > > >> > - Have cairo expose a new alternate fixed point API that pango-cairo > >> > makes use of ( openGL API does a similar thing ). Internally cairo > >> > is mostly fixed point I believe. > >> > >> Is this something that we can do with just a typedef? > > > > Not without a C++ compiler. > > I'm not sure I understand. I'm not talking about a template.
I didn't have templates in mind either. Just a class with casts and overloaded operators. > For instance, exactly what functions are we talking about in the API? I was not just talking about the API. The API is easy: it uses double. So you can just typedef to whatever else, or #define it. The hard part is the implementation, and that's what I was suggesting. > > But that may be feasible still. We use > > floats like others do, add, multiply, sin(), cos(), and add & multiply > > won't work straight on fixed. > > So this is more than just API, but I guess it can still be adapted. -- behdad http://behdad.org/ "Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill" -- Dan Bern, "New American Language" _______________________________________________ Performance-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/performance-list
