I believe there is a file called LoopMacros.h that defines the skeletons for the functions. Then there are a number of files named after a particular pixel format, like "IntArgb.c", which contain a bunch of invocations of those macros. Each macro invocation expands into an entire function.

At one point I was going to write a make target that would expand and format all of the files so that the actual loops could be examined, but that never got off the ground due to a lack of proper cross-platform tools...

                        ...jim

On 7/8/13 12:09 PM, Phil Race wrote:
Its all in src/share/native/sun/java2d/loops/
It may not be so easy to look at because it heavily uses macros.

-phil.

On 7/5/2013 5:49 AM, Regina Anger wrote:
Just for fun I would like to have a look how some routines of Java2D's
software rendering library are implemented (especially
fillprarallelogram, drawline, ...). However even after doing an
extensive search, I was not able to find the actual code implementing
those functions.

So any pointers are very welcome.

Thx

Reply via email to