I want to reuse a lot of code (~50k loc) from another project (Gusanos/Vermes), which is based on Allegro, to our project (OpenLieroX), which is based on SDL.
Do you have any suggestions on that?
I thought of multiple options:
Include both SDL and Allegro into our project and hope they work fine together. I’d like to avoid this though because of the additional dependency and I can imagine that I would run into a lot of trouble here.
Write a small Allegro wrapper. Basically for all functions which are needed in that project.
I’ll start with this second option now but it also seems a lot of work. Perhaps some of you have some better suggestions/ideas.
Well I would start by isolating all the Allegro APIs that you need.
You may find there are other libraries out there that implement the
same functionality independently of a larger lib, and where
applicable, possibly on top of SDL APIs.On Mon, Nov 30, 2009 at 8:39 AM, albert wrote:
Hi,
I want to reuse a lot of code (~50k loc) from another project
(Gusanos/Vermes), which is based on Allegro, to our project (OpenLieroX),
which is based on SDL.
Do you have any suggestions on that?
I thought of multiple options:
Include both SDL and Allegro into our project and hope they work fine
together. I’d like to avoid this though because of the additional dependency
and I can imagine that I would run into a lot of trouble here.
Write a small Allegro wrapper. Basically for all functions which are
needed in that project.
I’ll start with this second option now but it also seems a lot of work.
Perhaps some of you have some better suggestions/ideas.
My suggestion is to gather the functions that you need and post them
(or a link to a page displaying them) on this mailing list. I think
any sort of SDL wrapper of Allegro (assuming one does not exist) would
be useful to many people who wouldn’t switch for loss of codebase.
I’d do what I could to provide some implementations and I’m sure other
people would chip in, making your job easier.
Jonny DOn Mon, Nov 30, 2009 at 9:19 AM, albert wrote:
Do you (or anyone) know any other projects where such work was done?
(I’ll crawl myself now a bit but not sure if I’ll find something this way.)