SDL_RWOps flexibility |
SDL_RWOps flexibility |
Rainer Deyke
Guest
|
On 08.01.2015 05:17, Felipe Oliveira Carvalho wrote:
You do realize that opening a file usually involves several memory allocations even without SDL_RWOps, right? -- Rainer Deyke _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
SDL_RWOps flexibility |
Jonny D
|
My suggestion would be that the RWops interface reflects the way all of the other interfaces in SDL work (see also SDL_CreateRGBSurface(), SDL_CreateWindow(), etc.). Structures meant to be used as mostly or completely opaque are dynamically allocated and a pointer is returned. Structures used more like value types (e.g. SDL_Rect) have the flexibility to be on the stack.
SDL might not do as much on the stack as is possible, but it surely is more directly portable to other language bindings. Jonny D On Fri, Jan 9, 2015 at 3:06 AM, Rainer Deyke wrote:
|
|||||||||||||||
|