comparison include/SDL_rwops.h @ 764:974c0fb74bf8

Added function to create RWops from const memory: SDL_RWFromConstMem()
author Sam Lantinga <slouken@libsdl.org>
date Sun, 04 Jan 2004 15:18:08 +0000
parents 9154ec9ca3d2
children b8d311d90021
comparison
equal deleted inserted replaced
763:51b5e0be61c3 764:974c0fb74bf8
90 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFile(const char *file, const char *mode); 90 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFile(const char *file, const char *mode);
91 91
92 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFP(FILE *fp, int autoclose); 92 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFP(FILE *fp, int autoclose);
93 93
94 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromMem(void *mem, int size); 94 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromMem(void *mem, int size);
95 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromConstMem(const void *mem, int size);
95 96
96 extern DECLSPEC SDL_RWops * SDLCALL SDL_AllocRW(void); 97 extern DECLSPEC SDL_RWops * SDLCALL SDL_AllocRW(void);
97 extern DECLSPEC void SDLCALL SDL_FreeRW(SDL_RWops *area); 98 extern DECLSPEC void SDLCALL SDL_FreeRW(SDL_RWops *area);
98 99
99 /* Macros to easily read and write from an SDL_RWops structure */ 100 /* Macros to easily read and write from an SDL_RWops structure */