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.


Topics - daHeartless

Pages: [1]
1
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