Home | History | Annotate | Download | only in include

Lines Matching defs:SDL_RWops

41 typedef struct SDL_RWops {
46 int (SDLCALL *seek)(struct SDL_RWops *context, int offset, int whence);
52 int (SDLCALL *read)(struct SDL_RWops *context, void *ptr, int size, int maxnum);
58 int (SDLCALL *write)(struct SDL_RWops *context, const void *ptr, int size, int num);
61 int (SDLCALL *close)(struct SDL_RWops *context);
92 } SDL_RWops;
95 /* Functions to create SDL_RWops structures from various data sources */
97 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFile(const char *file, const char *mode);
100 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromFP(FILE *fp, int autoclose);
103 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromMem(void *mem, int size);
104 extern DECLSPEC SDL_RWops * SDLCALL SDL_RWFromConstMem(const void *mem, int size);
106 extern DECLSPEC SDL_RWops * SDLCALL SDL_AllocRW(void);
107 extern DECLSPEC void SDLCALL SDL_FreeRW(SDL_RWops *area);
113 /* Macros to easily read and write from an SDL_RWops structure */
122 extern DECLSPEC Uint16 SDLCALL SDL_ReadLE16(SDL_RWops *src);
123 extern DECLSPEC Uint16 SDLCALL SDL_ReadBE16(SDL_RWops *src);
124 extern DECLSPEC Uint32 SDLCALL SDL_ReadLE32(SDL_RWops *src);
125 extern DECLSPEC Uint32 SDLCALL SDL_ReadBE32(SDL_RWops *src);
126 extern DECLSPEC Uint64 SDLCALL SDL_ReadLE64(SDL_RWops *src);
127 extern DECLSPEC Uint64 SDLCALL SDL_ReadBE64(SDL_RWops *src);
130 extern DECLSPEC int SDLCALL SDL_WriteLE16(SDL_RWops *dst, Uint16 value);
131 extern DECLSPEC int SDLCALL SDL_WriteBE16(SDL_RWops *dst, Uint16 value);
132 extern DECLSPEC int SDLCALL SDL_WriteLE32(SDL_RWops *dst, Uint32 value);
133 extern DECLSPEC int SDLCALL SDL_WriteBE32(SDL_RWops *dst, Uint32 value);
134 extern DECLSPEC int SDLCALL SDL_WriteLE64(SDL_RWops *dst, Uint64 value);
135 extern DECLSPEC int SDLCALL SDL_WriteBE64(SDL_RWops *dst, Uint64 value);