Hi, I have a header file, which includes the graphics.hpp, in it I make a texture:
sf::Texture texture;
texture.loadFromFile("/data/textures/menu/New Game.pdn");
In another.h file, in which I include this .h file, I create a sprite:
sf::Sprite sprite(texture);
In my main.cpp, I include both of these headers and the graphics.hpp and I do:
window.draw(sprite);
If I now build and run the code, then It errors in the texture.loadFromFile line, saying:
Expected constructor, deconstructo or type conversion before . token
How to fix??