These days I am working on a project which uses the Anti-Gravity Geometry library. There is an old version available on os4depot and I wanted to make an updated one with the latest source code from https://sourceforge.net/projects/agg.
There is a makefile for AmigaOS 4, created by Steven Solie, who did the original port. This makefile uses clib2, but I managed to compile the library with newlib without any issues.
The thing is that there is a platform-specific file (agg_platform_support.cpp) which uses Picasso96 libraries, so I decided to convert it to use the graphic v54 library.
I moved the latest SVN code to my git at https://git.walkero.gr/walkero/agg and made all the necessary changes in the file above, so to remove the Picasso96. You can see the changes at the following pull request.
Please scroll down to the src/platform/AmigaOS/agg_platform_support.cpp file.
With those changes, I can compile and run most of the examples just fine, but I am afraid that I possibly missed something. You see, I have never before done such work and I'd love if anyone could have a look at it.
My questions are:
1. Is anyone here familiar with replacing Picasso96 methods with the latest graphics library ones, that could have a look at my code and give me some feedback?
2. I wonder if there is a way to use the graphics card so to make the result graphics even faster. Is this something that needs to be done in the library or it is a matter of the application that uses agg? And if this needs to be done in the library, what should I check on how to do it?
Thank you all for your help.