Skip to content

Window commands cleanup#1538

Merged
einarf merged 9 commits intodevelopmentfrom
window-commands-cleanup
Feb 17, 2023
Merged

Window commands cleanup#1538
einarf merged 9 commits intodevelopmentfrom
window-commands-cleanup

Conversation

@einarf
Copy link
Member

@einarf einarf commented Feb 17, 2023

  • Remove clear_window() since this can be confused with window.clear()
  • Removed redundant get_pixel_scale(window) since window.get_pixel_scale() already exists
  • Remove redundant create_orthogonal_projection() now that we have Mat4.
  • Removed get_viewport.

This function predates pyglet.math.Mat4.orthogonal_projection().
We should use that instead. Also this is a low level function
that should not be in the arcade namespace.
This is not a compatible pair with get_projection and can
cause a lot of confusion. The window already has a projection
member / function. Use that instead.
@einarf einarf merged commit c02c546 into development Feb 17, 2023
@einarf einarf deleted the window-commands-cleanup branch February 18, 2023 01:58
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