add: RenderTarget

This commit is contained in:
Simon Hardt
2022-03-03 19:43:37 +01:00
parent 02562095d8
commit 420d4c9dc1
7 changed files with 161 additions and 21 deletions

View File

@@ -9,4 +9,10 @@ namespace frame
uint32_t width;
uint32_t height;
};
inline Size operator/(Size const& size, int div)
{
return {size.width / div, size.height / div};
}
} // namespace frame