That's my first topic on this forum and I have trouble with this error and I don't know how it fix.
There's the code:
#include <stack>
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include "game.h"
#include "game_state.h"
#include "texture_manager.h"
using namespace sf;
void Game::loadTextures()
{
menedzertekstur.loadTexture(background, "RTS/tlo_menu.png");
}
and
void TextureManager::loadTexture(const std::string& name, const std::string& filename)
{
/* Load the texture */
sf::Texture tex;
tex.loadFromFile(filename);
/* Add it to the list of textures */
this->textures[name] = tex;
return;
}
public:
/* Add a texture from a file */
void loadTexture(const std::string& name, const std::string &filename);
class Game
{
private:
void loadTextures();
public:
stack<GameState*> states;
RenderWindow window;
TextureManager menedzertekstur ;
Sprite background;