While working through a DX11 tutorial I came across this bit of code:
typedef struct
{
float x, y, z;
}VertexType;
How is this different from:
struct VertexType
{
float x, y, z;
};
I have read some other questions on typedef and it does not seem to be normally used as it is here. Can anyone explain if there is difference?