Sdl_rw

Would somebody care to comment about this - - -

Considering how many libraries refer to SDL_RWops, can I assume that this
structure
(which I see in some places referred to as “undocumented”) is not going to
be deprecated?

I happened to notice when I recompiled from the src tarball that the html
documentation made no reference to SDL_RW.

I could take that as a hint that SDL_RWops really shouldn’t be fiddled with,
or a sign that the documentation
was a little too old, and I should consider the wiki the 'real’
documentation (plenty of references to it there…)

thanks in advance.

We’re all very sorry for the state of the documentation lately.
However, I guess the RWops API has been undocumented for a looong time
now.

I’m not sure what “SDL_RW” is (my system with the SDL source code is
not the one I’m on ATM, and the header files for SDL in Ubuntu Jaunty
don’t mention SDL_RW,) but SDL RWops is a simple read/write
abstraction sort of like FILE in stdio. You can read from an SDL_RWops
using the RWops API, and the data source on the other end might be a
file, or a data decompressor, or a media codec, or anything else that
supports the SDL RWops API.

It’s definitely not deprecated, and it’s not going anywhere. I guess
it’s never been documented because it’s kind of obscure.On Mon, Aug 17, 2009 at 6:08 PM, sdl-user wrote:

Would somebody care to comment about this - - -

Considering how many libraries refer to SDL_RWops, can I assume that this
structure
(which I see in some places referred to as “undocumented”) is not going to
be deprecated?

I happened to notice when I recompiled from the src tarball that the html
documentation made no reference to SDL_RW.

I could take that as a hint that SDL_RWops really shouldn’t be fiddled with,
or a sign that the documentation
was a little too old, and I should consider the wiki the 'real’
documentation (plenty of references to it there…)

thanks in advance.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


http://codebad.com/

Donny Viszneki wrote:

It’s definitely not deprecated, and it’s not going anywhere. I guess
it’s never been documented because it’s kind of obscure.

-OR-
It’s kind of obscure because it’s never been documented.

LOL

Thanks for the reply.

(When I wrote ‘SDL_RW’ I was just typing lazily in reference to the various
functions that use SDL_RW as a prefix, like SDL_RWFromFile)

I will consider SDL_RWops and the functions (like in SDL_ttf) that use it
’supported’ despite any inequalities in the documentation.