Skip to content

TiledTexture updates - #45

Merged
deepnight merged 12 commits into
deepnight:masterfrom
Lojemiru:tiledtexture
Apr 19, 2023
Merged

TiledTexture updates#45
deepnight merged 12 commits into
deepnight:masterfrom
Lojemiru:tiledtexture

Conversation

@Lojemiru

@Lojemiru Lojemiru commented Mar 7, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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