[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

Re: [XaraXtreme-dev] Cairo Port


True unless I replace GDrawAsm, which I was originally thinking about.

The problem is if Cairo and GDraw don't have exactly similar capabilities.

But you are right, it might be nice to switch at run time (for testing
etc.). I might as well continue the way Carl started for now, but then
there's this context passing which I don't fully understand yet.

What is actually passed in the GCONTEXT struct? Esp., what's in the Data

It's an opaque data structure.

Should Valid actually be set toC90FDAA2 as it says in gconsts.h:238?

I suspect that's an internal Magic number GDraw uses.

You will also, I think, need to look carefully at whether you need to
derive an alternate render region class from GRenderRegion; ideally you
won't (as you'll have to change all sorts of instances where these are
created); perhaps you can use the render region capabilities system

Hmm, haven't thought about those details yet. This is what Carl was
refering to where GDRAW etc. paint to, right?

But using stubs or deriving a GDrawContext should be irelevant for this
matter, right?

Carl's initial aim, I think, was to make it compile and link without the
"polution" of the binary about.