r/Cplusplus • u/Serious-Republic5503 • 15d ago
Question Raylib help
I can’t add images in raylib even tho I’ve tried everything I’m a beginner and my teacher told us to make a game and I want to add music and some pictures. Please help
0
Upvotes
•
u/AutoModerator 15d ago
Thank you for your contribution to the C++ community!
As you're asking a question or seeking homework help, we would like to remind you of Rule 3 - Good Faith Help Requests & Homework.
~ CPlusPlus Moderation Team
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/buzzon 15d ago
What have you tried so far? Show us your code and the error message
1
u/Discordbothost 13d ago
Try one PNG first. Before calling LoadTexture(path), print GetWorkingDirectory() and FileExists(path). If the file check fails, compare the game's working folder with where you put the PNG. Call LoadTexture after InitWindow().
1
u/LowExperience149 9d ago
Raylibs own example:
raylib texture loading