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 - daHeartless

Pages: [1]
1
Graphics / Re: Texture is not rendered
« on: December 03, 2022, 06:55:39 pm »
Just fixed it today, it was the order of the function implementation that caused it.

2
Graphics / Re: Texture is not rendered
« on: December 02, 2022, 05:15:06 pm »
yes, I assume it loads successfully because I do not get any error message.

3
Graphics / Re: Texture is not rendered
« on: December 01, 2022, 10:06:11 pm »
Sorry for not mentioning that, I edited the post now. No, I am on macOS.

4
Graphics / Texture is not rendered
« on: December 01, 2022, 08:31:53 pm »
Hi,
I am trying to render a texture but I get only a black screen everytime I compile the code without any error. It compiles just fine with the examples from sfml website.
** I am on macOS, using CLion.
void Player::initializeTexture() {
/*
     * A texture will be loaded from a file.
     */



    if(!this->texture.loadFromFile("/Users/ismailsafwat/CLionProjects/ShapeShooters/Textures/sfmliconbig.png")){
        std::cout << "ERROR::PLAYER::INITIALIZETEXTURE::Failed to load the file!" << "\n";
    }
}
 

Pages: [1]
anything