BITMAP (Allegro 4) to ALLEGRO_BITMAP (Allegro 5) conversion #1665
MarekRatajczak2024
started this conversation in
General
Replies: 2 comments 2 replies
-
|
First question, are you linking both A4 and A5 to your program? Or are you using some backwards compatibility library that allows you to use A4 style code? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Give a try to https://github.com/kazzmir/allegro4-to-5 instead of AllegroLegacy. I somewhat actively commit there to the point I can run Editor On Fire. The main advantage in my view is that 425 allows to slowly migrate to a5 by mixing in a5 code here and there compared to legacy. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
Does optimised procedure exist converting BITMAP (Allegro 4 style) to ALLEGRO_BITMAP (Allegro 5 style) assuming that both bitmaps are the same dimensions, the same colour depth, so they are "visually" identical, but doing that conversion somehow smart by simply memmove of entire lines (horizontal lines) rather then doing it pixel by pixel, with pixel colour conversion which I realized is platform dependant, and what I have done so far in my program, what is not really optimal, and that I have to do 30 times per second, using Allegro-Legacy library due to nearly entire code I have done in Allegro 4, so all based on BITMAPs. Thanks for your attention and awaiting for any answer.
Marek.
Beta Was this translation helpful? Give feedback.
All reactions