Sounds like a case of mismatched imports.
04.08.2012 3:29 пользователь "billb" <[email protected]> написал:
> I have a project that finally reached a steady-state that was "functional"
> when I had computer issues.
>
> I saved my entire project (I'm using Eclipse v4.2.0) and then fixed my
> hardware issues.
>
> After re-installing Eclipse and then importing my project followed by
> importing both AndEngine and AndEngineTexturePackerExtension (newly
> downloaded from Git).
> I now only have one error and it is with the method call to load my
> texture file.
>
> The error I'm getting is: The constructor
> TexturePackLoader(TextureManager, String) is undefined
> The constructor in AndEngineTexturePackExtension does have the above
> definition, however, the TexturePackLoader in AndEngine does not.
>
> I've tried re-arranging the libraries and the import statements, all to no
> avail.
>
> Does anyone have insight into what would cause this previously working
> code to later not parse properly?
>
> Here is the code:
>
> try
> {
> BitmapTextureAtlasTextureRegionFactory.setAssetBasePath("gfx/");
> Log.i("SPLAT FILE", settings.getSplatFile());
> //
> //--- The below line is where the error occurs!
> //
> final TexturePack spritesheetTexturePack = new
> TexturePackLoader(this.getTextureManager(),
> "gfx/splats/").loadFromAsset(this.getAssets(), settings.getSplatFile());
> spritesheetTexturePack.loadTexture();
> this.mSpritesheetTexture = spritesheetTexturePack.getTexture();
> // The texture region library has all the individual sprites from the
> spritesheet.
> this.mSpritesheetTexturePackTextureRegionLibrary =
> spritesheetTexturePack.getTexturePackTextureRegionLibrary();
> }
> catch (final TexturePackParseException e)
> {
> Log.e("Error", String.valueOf(e));
> }
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en