Skip to content

Configurable default window dimensions - #1828

Draft
felipeerias wants to merge 1 commit into
mainfrom
felipeerias/configurableDefaultWindowDimensions
Draft

Configurable default window dimensions#1828
felipeerias wants to merge 1 commit into
mainfrom
felipeerias/configurableDefaultWindowDimensions

Conversation

@felipeerias

Copy link
Copy Markdown
Collaborator

Define the preset window dimensions at build time.

Unfortunately, Gradle doesn't allow us to define complex data structures and there isn't a clean way to access dimension resources from static constants and enums, which means that each dimension is defined as a separate constant.

The default size is WINDOW_PRESET_0_WIDTH by WINDOW_PRESET_0_HEIGHT.

We also define the DEFAULT_LOGICAL_WIDTH in CSS pixels. This value, along witht he density and the width of the default window are used to calculate the DPI.

This provides a configurable and predictable way of defining the default window size, logical size, and texture size, for different builds.

Define the preset window dimensions at build time.

Unfortunately, Gradle doesn't allow us to define complex data structures
and there isn't a clean way to access dimension resources from static
constants and enums, which means that each dimension is defined as a
separate constant.

The default size is WINDOW_PRESET_0_WIDTH by WINDOW_PRESET_0_HEIGHT.

We also define the DEFAULT_LOGICAL_WIDTH in CSS pixels. This value,
along witht he density and the width of the default window are used
to calculate the DPI.

This provides a configurable and predictable way of defining the default
window size, logical size, and texture size, for different builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant