- Online Community Forums » Programming Questions » Allegro structures as parameters

This thread is locked; no one can reply to it. rss feed Print
Allegro structures as parameters
Member #16,806
February 2018

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?

Member #2,727
September 2002

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)


Go to: