views:

228

answers:

4

Hi SO Friends,

I am working on embedded linux, Is there any open source 2D renderer available which can draw on memory, scanline based, complete fixed-point support.

I work in c or cpp programming language.

I know one with which satisfy my all needs that is, Google Skia which google uses in android and chrome, But I found it without documentation, not straight-forward compilable, not straight-forward usable in 3rd party projects.

Regards, Sunny.

+2  A: 

Checkout Cairo. I am not sure what you mean by "complete fixed-point support" but other than that it seems to meet your requirements.

kdubb
kdubb, complete fixed point support means no floating point operations, all floating point operations replaced with integer operations with limited accuracy.
Sunny
glad to give you first UP. :-) Welcome to SO.
Sunny
Although the public API uses double, internally cairo is 24.8 fixed point since version 1.5.12.
ntd
A: 

DirectFB.

If you want hardware acceleration , directFB is the most portable way to go.

pierr
But does it uses Fixed Point ?
Sunny
+1  A: 

Allegro is a games library which includes extensive software rendering, most of which does not rely on floating point. Additionally it has some trig functions and maths functions which work on fixed-point. It has things like sprite-rotation which don't need floating point.

MarkR
Thanks, May I have there any reference or tutorial to learn it, which you found helpful?
Sunny
It's all linked from the above site. You're going to be more or less on your own compiling for an embedded platform though; the community is pretty helpful however.
MarkR
+1  A: 

Don't know if it's what you're looking for, but there's libcrtxy http://libcrtxy.sourceforge.net/

smcameron