0

I am using a library, and it has multiple structs defined like this in its header

typedef struct
{
    unsigned int gid;
    unsigned int tilesetIndex;
    unsigned int tileFlatIndex;
    bool flipX, flipY, flipDiagonal;
} TmxLayerTile;

and I am wondering why is it so, instead of struct TmxLayerTile {...};? I understand that there is difference in C, that the former would allow using it with TmxLayerTile instead of struct TmxLayerTile, but for it being in C++, are these completely identical?

I understand this is pretty much semantics, but it got me curious.

Coderino Javarino
  • 2,819
  • 4
  • 21
  • 43

0 Answers0