Wiki Page Content

Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2010-06-24 20:53:51
Size: 1049
Editor: SheenaSmith
Comment: add content from old wiki
Revision 4 as of 2010-08-22 19:57:35
Size: 1006
Editor: SheenaSmith
Comment: minor change
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
<<Color2(green,Currently no SDL_RWops page so no link.)>>
Line 19: Line 18:
||'''size'''||^the size of the memory location^ ???|| ||'''size'''||^the size of the memory location^||
Line 25: Line 24:
*
Line 32: Line 32:
*
Line 34: Line 35:
If the memory is not writable, use [[SDL_RWFromConstMem]]() instead. *<<BR>>If the memory is not writable, use [[SDL_RWFromConstMem]]() instead.<<BR>>*

DRAFT

SDL_RWFromMem

Use this function to create an SDL_RWops structure from memory of a certain size.

Syntax

SDL_RWops* SDL_RWFromMem(void* mem,
                         int   size)

Function Parameters

mem

a pointer to the memory location

size

the size of the memory location

Return Value

A pointer to the SDL_RWops structure that is created, or NULL on failure.

Code Examples

*

char bitmap[310000];
SDL_RWops *rw;

rw = SDL_RWFromMem(bitmap, sizeof(bitmap));
SDL_SaveBMP_RW(screen, rw, 0);

*

Remarks

*
If the memory is not writable, use SDL_RWFromConstMem() instead.
*


CategoryAPI, CategoryIO

None: SDL_RWFromMem (last edited 2015-06-20 20:00:06 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit