Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Phictus

Pages: [1]
1
Graphics / weird error with texture loading
« on: June 21, 2021, 01:12:31 pm »
this is the code:
sf::Texture texture;
if (!texture.loadFromFile("assets/textures/spaceship.png"))
    __debugbreak();
m_Sprite.setTexture(texture);
 
but i get this error in the console: "Failed to load image "". Reason: Unable to open file"
it doesn't even say the texture path that it tried to open so i don't think that the image is the problem.

Pages: [1]
anything