Porting LibAlleg to new Platform
CodeforEvolution

I wondering though how would one port liballegro5 to a new platform, is there dummy code to start with or any functions that are implemented first? ???

SiegeLord

There are two basic steps you need to do (aside from the build system support):

1. Define _al_register_system_interfaces function which registers the interfaces your platform supports.

2. Implement ALLEGRO_SYSTEM_INTERFACE with the various functions for display handling etc.

A pretty simple example to follow would be the RaspberryPi interface (although it primarily piggy-backs on the existing Linux functionality), which you can find in src/raspberrypi.

Elias

If your platform already supports SDL2, there also is an SDL2 driver of Allegro. (It also could serve as example, it entirely piggybacks on SDL2 to do everything.)

CodeforEvolution

Thanks! ;D I will look with both of those ideas.

Felix-The-Ghost

PS4 port plzkthx ;D

Rodolfo Lam

That actually might raise awareness of the library!

Are you willing to contact Sony to acquire the development licence to develop Allegro there? Someone needs to start the port ;D

Thread #616699. Printed from Allegro.cc