Or is it better to go with common C functions?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is an I/O API in SDL, I’m not sure if it’s any easier though, but it should be portable. Those are the relevant functions:
There’s an example here that shows how to open and read from a file.
Edit:There’s a tutorial here on the file API, it may be easier to use when loading images:
http://www.aspfree.com/c/a/c-sharp/game-programming-using-sdl-the-file-io-api/