Problems seems to be solved and thx for the list, I didnt think about it =P
However, now I have a new Problem.
After first creating, even before clearing, the window is closed immediatly.
(Probably just a stupid mistake by me =S)
Here the reworked sourece code of the memberfunctions of Game
#include "Game.hpp"
Game::Game ()
{
// do nothing atm
}
Game::~Game ()
{
// do nothing atm
}
void Game::InitGame ()
{
sf::RenderWindow (sf::VideoMode (800, 600, 32), "Game");
InitBackground ();
}
void Game::RenderProcedure ()
{
while (Window.IsOpened () )
{
sf::Event Event;
while (Window.GetEvent (Event) )
{
if (Event.Type == sf::Event::Closed)
Window.Close ();
}
Window.Clear ();
Window.Draw (S_Background);
Window.Display ();
}
}
void Game::InitBackground ()
{
I_Background.LoadFromFile ("background.tga");
S_Background.SetImage (I_Background);
S_Background.Resize (800, 600);
S_Background.SetPosition (0.0, 0.0);
S_Background.SetCenter (0.0, 0.0);
}