Jun 11, 2013 at 7:20pm UTC
getTexture() returns the texture of a sprite. It doesn't have parameters, so passing any arguments to it will cause the error you got.
I think you mean to do this:
sprite.setTexture( texture );
Last edited on Jun 12, 2013 at 7:35am UTC
Jun 12, 2013 at 12:08pm UTC
it's dosen't work...
i got this error
Error 9 error LNK2019: unresolved external symbol "private: static void __cdecl Game::ShowSplashScreen(void)" (?ShowSplashScreen@Game@@CAXXZ) referenced in function "private: static void __cdecl Game::GameLoop(void)" (?GameLoop@Game@@CAXXZ) C:\Documents and Settings\Yonatan\My Documents\Pang\Pang\Game.obj
and this
Error 11 error LNK1120: 2 unresolved externals C:\Documents and Settings\Yonatan\My Documents\Pang\Debug\Pang.exe
(I want upload an image)
Last edited on Jun 12, 2013 at 12:13pm UTC
Jun 13, 2013 at 5:30am UTC
You haven't defined the function Game::ShowSplashScreen or you defined it in a source file that is not in your project. Correct that.