I notice in several API’s, that you may create a struct which is used internally and has nothing. ex:
ALLEGRO_BITMAP *bmp;
...
bmp->(intellesense shows nothing)
how do these types of structures work? are they simply handled like this internally?
REAL_ALLEGRO_BITMAP *realbmp = (REAL_ALLEGRO_BITMAP*)bmp;
or is there a cleaner solution?
Thanks
What you’re looking at is an opaque pointer or opaque data type (link and link). Here’s an SO thread discussing these: What is an opaque value?