Пример #1
0
	void Viewport::setBounds(Recti bounds)
	{
		sprite->setBounds(bounds);
		if (target.isValid())
		{
			target->setSize(bounds.getSize());
		}
	}
Пример #2
0
Rect::Rect(const Recti &r) :
	position(r.getPos()),
	size(r.getSize())
{
}