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

High-res tiled textures #6770

Merged
merged 5 commits into from Jun 14, 2022
Merged

High-res tiled textures #6770

merged 5 commits into from Jun 14, 2022

Conversation

mesilliac
Copy link
Contributor

This adds back the smooth scaling image mode, and also adds a new tiling mode "tile_highres" which can be used to tile images in full high-dpi output resolution rather than game resolution.

This is useful for texturing effects, such as the image that is used to texture window backgrounds which has been updated to use this tiling mode.

I didn't make it the default, because it would break anything relying on the previous sizing. The other modes "tile" and "tile_center" both tile images in draw-space - so their drawn sizes will match with sprite scales and with other sizing in WML.

Mostly just putting this up for the CI check.

Vultraz and others added 5 commits June 14, 2022 14:47
Correctly meaning using linear filtering in stead of none.
The other options "tile" and "tile_center" work in draw space,
which is consistent with past behaviour, but doesn't look as nice.
- Removed overload of set_resolution taking two ints
- Removed get_width and get_height in favor of draw_area
- Removed some dead code
- Minor formatting cleanup
@github-actions github-actions bot added Help In-game Help functions Schema UI User interface issues, including both back-end and front-end issues. labels Jun 14, 2022
@mesilliac mesilliac merged commit 43a1ecc into wesnoth:master Jun 14, 2022
@mesilliac mesilliac deleted the tile_highres_2 branch June 14, 2022 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help In-game Help functions Schema UI User interface issues, including both back-end and front-end issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants