Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Allegro structures as parameters

This thread is locked; no one can reply to it. rss feed Print
Allegro structures as parameters
SaSSolino
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?

torhu
Member #2,727
September 2002
avatar

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: