1
General discussions / Getting started with SFML and VC++ 2010
« on: January 06, 2012, 01:38:27 am »
Hello
look this
look this
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.
sf::Image image;
if(!image.LoadFromFile("sprite.png"))
return EXIT_FAILURE;
sf::Sprite sprite(image);
void RenderPlayer(sf::RenderWindow &win)
{
sf::Image image;
sf::Sprite sprite;
if(!image.LoadFromFile("pac.png"))
{
}
sprite.SetImage(image);
sprite.SetPosition(200,400);
movePlayer(win,sprite);
win.Draw(sprite);
}