|
Allegro 4 Vs 5 |
AceBlkwell
Member #13,038
July 2011
|
I’m still running Allegro 4. Is there a great benefit to graduating on to Allegro 5? Is it a difficult transition? Meaning is it just a matter of learning a new syntax or is the setup and flow greatly different? Thanks |
Edgar Reynaldo
Major Reynaldo
May 2007
|
This has been done to death. Just search for Allegro 4 vs 5. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
AceBlkwell
Member #13,038
July 2011
|
Your right Edgar. Even looks like I asked this a while back. I’ll pull up some tutorials Thx |
Ariesnl
Member #2,902
November 2002
|
Allegro 5 is easier to use If you're using C++ I do have an easy framework for you usage:
Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard) |
dthompson
Member #5,749
April 2005
|
Nutshell: Allegro 5 suits modern hardware better, and the library's design is (so far as I know) considered far more sensible. ______________________________________________________ |
Edgar Reynaldo
Major Reynaldo
May 2007
|
TL:DR; 4) Input polling, software drawing, CPU bound 5) Event based, hardware accel, GPU bound My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
AceBlkwell
Member #13,038
July 2011
|
Thx all, I’ll check it out. I’m guessing you can’t have both 4 and 5 installed on same machine? I still have a few 4 projects I might want to update. Was hoping I wouldn’t have to uninstall and reinstall to swap between the two. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
You can install both theyre compatible you just can't use them together very well. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Chris Katko
Member #1,881
January 2002
|
There's no reason to use Allegro 4 unless you're targetting DOS or same era machinery. That's what it's designed for. Any nitpicks about Allegro 5 are 99% "I learned once and I don't want to learn something new." It's faster in every way. -----sig: |
AceBlkwell
Member #13,038
July 2011
|
Yeah I wouldn’t want to use them within the same program. Ive wrote a few programs in 4 and if I want to update them at some point I’m not going to be able to recompile using 5. Thx all |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Yes, you can port them if you choose. There is a guide for porting lurking somewhere on the wiki or the web mostly its just a matter of changing some types and function calls. And you have to change your input from polling to event based. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Chris Katko
Member #1,881
January 2002
|
If your code is crap (you mix input and logic and drawing everywhere) then it'll be a PITA. Otherwise, it's barely more than a control-F find-and-replace, then the event handler code (which can be as simple as "throw all the old code into a single event." and simply respond to other required events). -----sig: |
AceBlkwell
Member #13,038
July 2011
|
I think there a signature of another member. To paraphrase, all code is written like crap but your own. In any case I think my last project was better than my earlier attempts. I’m going to see about putting it on the depot just to gauge people’s reaction to it. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
That's Gully's signature. All code smells like crap except your own. But I think my poo stinks too. My code smells like roses though. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
AceBlkwell
Member #13,038
July 2011
|
With programming code, I just go with, “ if you can’t understand my code, it must be beyond your current skill set.” Now that’s not necessarily true but it’s what I’m sticking with |
ks
Member #1,086
March 2001
|
For those who still use Allegro 4 I'm surprised Todd Cope's Allegro Legacy isn't mentioned more often as a potential transition to Allegro 5. https://github.com/NewCreature/Allegro-Legacy +++ Introduction Allegro Legacy is a library that you can use in place of Allegro 4 to compile your programs and run them on modern systems. It utilizes Allegro 5 to access the system hardware, so it should theoretically run anywhere Allegro 5 can run. Features
|
Chris Katko
Member #1,881
January 2002
|
I was talking about objective code smells though and even mentioned an example. Mixing code logic, drawing functions everywhere. -----sig: |
ZoriaRPG
Member #16,714
July 2017
|
Is there still active work on Allegro Legacy? last I saw, it still had no MIDI and I never received an answer as to why it can't just use AG4 miDI stuff. 'Drawing functions everywhere', 'AG4 bitmaps', 'AG4 indexed colour', and 'AG4 packfile' are the key issues with any direct AG4 to AG5 port, and why ZC could never be sanely ported (and compatible).
|
|