Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewport size and position to be defined through percentages or absolute values #4960

Open
TotalKrill opened this issue Jun 7, 2022 · 1 comment
Labels
A-Rendering Drawing game state to the screen A-Windowing Platform-agnostic interface layer to run your app in C-Feature A new feature, making something new possible C-Usability A targeted quality-of-life change that makes Bevy easier to use

Comments

@TotalKrill
Copy link
Contributor

Problem

Using viewports to define split screen or minimaps have some differing requirements, that would sometimes be more easily defined by percentage of the available window or absolute values respectively. Minimaps might have more use of absolute values, and split screen would probably have either 50/50 or something similar in viewport.

Solution

This could be expressed as enums for the viewport size and viewports positions as defined by #4898 and proposed by comment

@TotalKrill TotalKrill added C-Feature A new feature, making something new possible S-Needs-Triage This issue needs to be labelled labels Jun 7, 2022
@Weibye Weibye added A-Rendering Drawing game state to the screen A-Windowing Platform-agnostic interface layer to run your app in C-Usability A targeted quality-of-life change that makes Bevy easier to use and removed S-Needs-Triage This issue needs to be labelled labels Jun 9, 2022
@Weibye
Copy link
Contributor

Weibye commented Jun 9, 2022

For inspiration on the implementation side, I know winit is doing something similar when differentiating between Physical and Logical pixel position: https://docs.rs/winit/0.21.0/winit/dpi/enum.Position.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen A-Windowing Platform-agnostic interface layer to run your app in C-Feature A new feature, making something new possible C-Usability A targeted quality-of-life change that makes Bevy easier to use
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants