42 #define SDL_RWOPS_UNKNOWN 0
43 #define SDL_RWOPS_WINFILE 1
44 #define SDL_RWOPS_STDFILE 2
45 #define SDL_RWOPS_JNIFILE 3
46 #define SDL_RWOPS_MEMORY 4
47 #define SDL_RWOPS_MEMORY_RO 5
100 void *inputStreamRef;
101 void *readableByteChannelRef;
103 void *assetFileDescriptorRef;
109 #elif defined(__WIN32__)
174 #define RW_SEEK_SET 0
175 #define RW_SEEK_CUR 1
176 #define RW_SEEK_END 2
184 #define SDL_RWsize(ctx) (ctx)->size(ctx)
185 #define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence)
186 #define SDL_RWtell(ctx) (ctx)->seek(ctx, 0, RW_SEEK_CUR)
187 #define SDL_RWread(ctx, ptr, size, n) (ctx)->read(ctx, ptr, size, n)
188 #define SDL_RWwrite(ctx, ptr, size, n) (ctx)->write(ctx, ptr, size, n)
189 #define SDL_RWclose(ctx) (ctx)->close(ctx)
DECLSPEC Uint64 SDLCALL SDL_ReadLE64(SDL_RWops *src)
DECLSPEC Uint8 SDLCALL SDL_ReadU8(SDL_RWops *src)
size_t(SDLCALL *read)(struct SDL_RWops *context
GLfloat GLfloat GLfloat GLfloat h
struct SDL_RWops::@74::@76 unknown
const void size_t size_t num
DECLSPEC Uint16 SDLCALL SDL_ReadLE16(SDL_RWops *src)
DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(void *fp, SDL_bool autoclose)
Sint64(SDLCALL *size)(struct SDL_RWops *context)
DECLSPEC size_t SDLCALL SDL_WriteBE32(SDL_RWops *dst, Uint32 value)
DECLSPEC size_t SDLCALL SDL_WriteLE32(SDL_RWops *dst, Uint32 value)
int(SDLCALL *close)(struct SDL_RWops *context)
DECLSPEC SDL_RWops *SDLCALL SDL_AllocRW(void)
DECLSPEC Uint32 SDLCALL SDL_ReadLE32(SDL_RWops *src)
uint32_t Uint32
An unsigned 32-bit integer type.
EGLContext EGLenum EGLClientBuffer buffer
DECLSPEC SDL_RWops *SDLCALL SDL_RWFromMem(void *mem, int size)
struct SDL_RWops SDL_RWops
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
uint64_t Uint64
An unsigned 64-bit integer type.
DECLSPEC void SDLCALL SDL_FreeRW(SDL_RWops *area)
void size_t size_t maxnum
DECLSPEC Uint16 SDLCALL SDL_ReadBE16(SDL_RWops *src)
DECLSPEC size_t SDLCALL SDL_WriteBE16(SDL_RWops *dst, Uint16 value)
DECLSPEC Uint64 SDLCALL SDL_ReadBE64(SDL_RWops *src)
EGLSurface EGLint void ** value
DECLSPEC Uint32 SDLCALL SDL_ReadBE32(SDL_RWops *src)
uint8_t Uint8
An unsigned 8-bit integer type.
DECLSPEC size_t SDLCALL SDL_WriteLE16(SDL_RWops *dst, Uint16 value)
union SDL_RWops::@74 hidden
DECLSPEC size_t SDLCALL SDL_WriteU8(SDL_RWops *dst, Uint8 value)
struct SDL_RWops::@74::@75 mem
uint16_t Uint16
An unsigned 16-bit integer type.
DECLSPEC size_t SDLCALL SDL_WriteBE64(SDL_RWops *dst, Uint64 value)
DECLSPEC SDL_RWops *SDLCALL SDL_RWFromConstMem(const void *mem, int size)
DECLSPEC size_t SDLCALL SDL_WriteLE64(SDL_RWops *dst, Uint64 value)
int64_t Sint64
A signed 64-bit integer type.
DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFile(const char *file, const char *mode)