Пример #1
0
void CSprite::SetPosition(CVector2D pos)
{
	_position = pos;
	_rect.x = pos.GetX() - (int) ((float)_rect.w / 2.0f);
	_rect.y = pos.GetY() - _rect.h;
}