I want to declare Rect structure:
struct{
float x,y;
float width,height;
}Rect;
And union variables x,y to 'pos' and width,height to 'size' Vector2f structure:
struct{
float x,y;
}Vector2f;
How can i do it with union?
Rect rect;
//rec.x; rec.y; rect.pos; rect.pos.x; rect.pos.y;
//rect.width; rect.height; rect.size; rect.size.x; rect.size.y;