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

TiledTexture updates #45

Merged
merged 12 commits into from
Apr 19, 2023
Merged

TiledTexture updates #45

merged 12 commits into from
Apr 19, 2023

Conversation

Lojemiru
Copy link
Contributor

@Lojemiru Lojemiru commented Mar 7, 2023

This PR is specifically created to introduce functionality and null safety to facilitate deepnight/ldtk#853

Adds a null check to build() so that TiledTextures may be instantiated (and can have build() run) without an assigned tile.

Changes the constructor signature to allow for tile-less instantiation.

Adds an override for the drawTo(Texture) method, allowing TiledTextures to be rendered directly to Textures.

Performed some minor cleanup to make the build() loop more efficient.

@deepnight deepnight merged commit 61226bd into deepnight:master Apr 19, 2023
@deepnight
Copy link
Owner

Thanks for the new feature 👍

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.

2 participants