Code: Select all
''Create a texture
Var bitmap = SDL_LoadBMP("square.bmp")
If bitmap = 0 Then
Print #EF, "SDL_LoadBMP() failed "; SDL_GetError()
End
End If
Code: Select all
SDL_LoadBMP() failed 334301808
Code: Select all
SDL_LoadBMP failed : : Parameter 'src' is invalid
For the record, "square.bmp" is a nonexistent file. That's why it's throwing the error. Everything works when I give it a valid filename, I'm just trying to understand why the error messages are different. Originally I tried this:
Code: Select all
Print #EF, "SDL_LoadBMP() failed " + SDL_GetError()