I am newbie to this forum and my question is probably newbie-like too.
To be specific: I am working on a simple 2D game in SFML library, lang: C++. There would be an object which presents a brick. This is probably irrelevant. I would like my bricks to look the same on the screen, so i just made only one texture for them. And here is my problem:
I just declared an sf::Texture as a member of a brick class. The thing is that the texture is one and I don't want to load it or alloc memory for it every time I create new instance of brick class. I would like to create it only once in code and not change it anywhere else. So I thought I can make it static. Since texture in SFML is also a class I came across kind of mystery for me:
There is method LoadFromFile(). I would like to call it out to load my texture. How do I call out methods of the class which is static member of another class.
PS: This is probably the worst description you ever read. The truth is I can't describe anything to anyone. There is always more talking then facts etc. Hope you understood my issue.