diff options
| author | SonofUgly <son_of_ugly@yahoo.com> | 2017-02-01 00:22:47 -0800 |
|---|---|---|
| committer | SonofUgly <son_of_ugly@yahoo.com> | 2017-02-23 10:49:56 -0800 |
| commit | 4cb28deee50259cce38eb32fc7a4f02ee41d5bf8 (patch) | |
| tree | 288cacc8a345cea50d8c6a25c17e4ebbb1ec41d9 /src/common/framebuffer_layout.h | |
| parent | 3d7e9d273ad697ceb3e2f89753d089504ac1d510 (diff) | |
Add custom layout settings.
Diffstat (limited to 'src/common/framebuffer_layout.h')
| -rw-r--r-- | src/common/framebuffer_layout.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/framebuffer_layout.h b/src/common/framebuffer_layout.h index a125646a32..f1df5c55af 100644 --- a/src/common/framebuffer_layout.h +++ b/src/common/framebuffer_layout.h @@ -44,4 +44,12 @@ FramebufferLayout SingleFrameLayout(unsigned width, unsigned height, bool is_swa * @return Newly created FramebufferLayout object with default screen regions initialized */ FramebufferLayout LargeFrameLayout(unsigned width, unsigned height, bool is_swapped); + +/** + * Factory method for constructing a custom FramebufferLayout + * @param width Window framebuffer width in pixels + * @param height Window framebuffer height in pixels + * @return Newly created FramebufferLayout object with default screen regions initialized + */ +FramebufferLayout CustomFrameLayout(unsigned width, unsigned height); } |
