1
Graphics / Animation using sftools::Animated
« on: December 26, 2009, 03:46:32 am »Quote from: "Hiura"
ARodrigues, have you added Frame.cpp to your project ?
Sure ^^
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
ARodrigues, have you added Frame.cpp to your project ?
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall sftools::Frame::Frame(class sf::Image const &,class sf::Rect<int> const &,class sf::Color const &)" (??0Frame@sftools@@QAE@ABVImage@sf@@ABV?$Rect@H@3@ABVColor@3@@Z) referenced in function "class sftools::Anim __cdecl AnimImage(class sf::Image,int,int,int,int,int)" (?AnimImage@@YA?AVAnim@sftools@@VImage@sf@@HHHHH@Z)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall sftools::Frame::Frame(class sftools::Frame const &)" (??0Frame@sftools@@QAE@ABV01@@Z) referenced in function __catch$?_Insert_n@?$vector@VFrame@sftools@@V?$allocator@VFrame@sftools@@@std@@@std@@IAEXV?$_Vector_const_iterator@VFrame@sftools@@V?$allocator@VFrame@sftools@@@std@@@2@IABVFrame@sftools@@@Z$0
sftools::Anim AnimImage ( const sf::Image& Image, int imgWidth, int imgHeight, int iFrame, int lFrame, int Aux )
{
sftools::Anim anim;
for ( int i = iFrame; i < lFrame; i++ )
{
anim.PushFrame ( sftools::Frame ( Image, sf::IntRect ( ( i * imgWidth ),
(Aux * imgHeight),
( ( i * 1 ) * imgWidth ),
( ( i * 1 ) * imgHeight )
) ) );
}
return anim;
}