My draw function doesn't work but i've got no compiler errors, i used debugger but it didn't help me(everythink seems fine), so i'm here to ask u why it doesn't actually draw
I've set the position of sprite, and texture. My draw function is:
void Player::render(sf::RenderWindow &window)
{
window.draw(player);
}
but it actually doesn't show anything (yes, i have it in my game loop).
May be this because of textures are .bmp files? I've used .bmp files and everything was okay but now i don't know why it just doesn't draw.
It just seems like anything that i do with sprite isn't working, dunno why.
I know that because i made an circle and set this position to player position but i couldn't even move the sprite position (sprite is a player).
My render function in gameLoop is:
void Game::render()
{
mWindow.clear();
player.render(mWindow);
mWindow.display();
}
Sorry for my bad english.