Allegro structures as parameters
SaSSolino

I can't seem to pass ALLEGRO_DISPLAY as a function parameter, not sure why. Is it a limitation or did I just simply do something wrong? If so, could you write an example?

torhu

You can use a pointer to an ALLEGRO_DISPLAY. But the actual struct definition is probably internal, meaning you can't work with them as values.

void foo(ALLEGRO_DISPLAY *disp)
{

}

Thread #617276. Printed from Allegro.cc