1

I've been trying to find complete documentation for SDL 1.2. I can't use SDL 2 for several reasons which I don't want to go over right now, but basically, I can't find any wiki backups for SDL 1.2 other than a rather incomplete snapshot on archive.org, this tutorial, and the man pages, and none of which contain information on how to use SDL_RWops.

So, I guess I need one of two things, a man page or simple outline of SDL_RWops and its associated functions, or, preferably, a complete backup of the wiki pre-2.0. I'm sure somewhere there's a backup of the wiki, but I just haven't found it.

  • [`SDL_rwops.h`](https://github.com/libsdl-org/SDL-1.2/blob/release-1.2.15/include/SDL_rwops.h) has some light documentation. There's also [`testfile.c`](https://github.com/libsdl-org/SDL-1.2/blob/release-1.2.15/test/testfile.c) but it doesn't do anything terribly interesting. – genpfault Jun 17 '22 at 15:41
  • 1
    RWops API haven't changed with SDL2, except offset argument type. You can use current wiki, it even mentions that change. – keltar Jun 17 '22 at 17:30

1 Answers1

0

This is an archive of the old API wiki.

As for SDL_RWops it's something like:

SDL_RWops rw;
rw = SDL_RWFromFile("/path/to/filename", "rb"); // rb being mode

It seems to retain the same signature in SDL2.

vesperto
  • 804
  • 1
  • 6
  • 26