Add an optional rectangle parameter to TextureNode #97
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So that users can specify their own area of the shared Texture to use. This allows more flexibility rather than having this functionality restricted to the TextureAtlas class which is specific to one particular approach to texture sharing.
This is a step toward having better support for tile maps such as those produced by the Tiled map editor (http://www.mapeditor.org/)
NOTE: I rejigged my original pull requests to hopefully make them easier to understand and less messy.
If this pull request is not substantial enough on it's own for inclusion then I can probably come back in a couple of weeks with a larger version that adds more functionality. I'm trying to help the best way I can, and am just not sure what the general process is for improving the library as an outsider.