Skip to content

Added createTiledFromAssetDirectory() method to SVGBitmapTextureAtlasTextureRegionFactory#3

Open
nazgee wants to merge 2 commits intonicolasgramlich:GLES2from
nazgee:for-nicolas-directorytiles
Open

Added createTiledFromAssetDirectory() method to SVGBitmapTextureAtlasTextureRegionFactory#3
nazgee wants to merge 2 commits intonicolasgramlich:GLES2from
nazgee:for-nicolas-directorytiles

Conversation

@nazgee
Copy link

@nazgee nazgee commented May 3, 2012

This method allows to load mutliple assets from a given directory to a
single ITiledTextureRegion.

Instead of loading multiple assets one by one it is sometimes convinient to do sth like this:

ITiledTextureRegion TEXS_FLOWERS = SVGBitmapTextureAtlasTextureRegionFactory.createTiledFromAssetDirectory(
                    atlasFlower, c, "flowers", Consts.FLOWER_TEX_WIDTH, Consts.FLOWER_TEX_HEIGHT);

And have dozen of files loaded as tiles of ITiledTextureRegion in just one go.

nazgee added 2 commits May 3, 2012 17:11
…TextureRegionFactory

This method allows to load mutliple assets from a given directory to a
single ITiledTextureRegion.
@nazgee
Copy link
Author

nazgee commented Jul 14, 2012

ping?

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