19 lines
272 B
C++
19 lines
272 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace frame
|
|
{
|
|
struct Size
|
|
{
|
|
uint32_t width;
|
|
uint32_t height;
|
|
};
|
|
|
|
inline Size operator/(Size const& size, int div)
|
|
{
|
|
return {size.width / div, size.height / div};
|
|
}
|
|
|
|
} // namespace frame
|