-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to provide an offset the viewport
When displaying content like fullscreen games with a very wide or tall aspect ratio it's useful to add a black border to the sides of the screen. Currently the viewport is hardecoded to always be aligned to the left. These changes allow a custom offset to be provided to the viewport (GL3 Backend). For actual interaction like hover events etc, the user will need to ensure they're providing the offset the `ProcessMouseMove()` coords.
- Loading branch information
1 parent
c00201e
commit 321f0db
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters