void Sprite::SetTransformation()
{
D3DXVECTOR2 spriteCenter = center;
D3DXVECTOR2 trans = pos;
D3DXVECTOR2 scaling = scale;
D3DXMatrixTransformation2D(&mat, NULL, 0.0, &scaling, &spriteCenter, rotation, &trans);
sprite->SetTransform(&mat);
}