aboutsummaryrefslogtreecommitdiff
path: root/include/Scale.hpp
blob: 4ab28826d806c3faa716b05a2e45bf1f48f22b05 (plain)
1
2
3
4
5
6
7
8
9
#pragma once

#include <SFML/System/Vector2.hpp>

namespace QuickMedia {
    sf::Vector2f wrap_to_size(const sf::Vector2f &size, const sf::Vector2f &clamp_size);
    sf::Vector2f clamp_to_size(const sf::Vector2f &size, const sf::Vector2f &clamp_size);
    sf::Vector2f get_ratio(const sf::Vector2f &original_size, const sf::Vector2f &new_size);
}