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