I just started learning SFML 2.0 and have been reading a tutorial, which unfortunately is in 1.6. Anyway, I have an Animation class, which has an sf::Sprite member, and in my int Animation::getFrameWidth() function I'm trying to do this:
return spriteImage.getTexture().getSize().x / amountOfFramesX;
// request for member 'getSize' in '((Animation*)this)->Animation::spriteImage.sf::Sprite::getTexture()', which is of non-class type 'const sf::Texture*'
I've used this in other parts of my program and its worked fine:
someTexture.getSize().x
Any help?