|
Size: 935
Comment: update content (from Sam)
|
Size: 1046
Comment: add content from old wiki (incomplete)
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 21: | Line 21: |
| A pointer to the [[SDL_RWops]] structure that is created. | *Returns a pointer to a new RWops structure, or NULL if it fails. * |
| Line 29: | Line 29: |
| ''You can add useful comments here'' | This is not available under Win32, since files opened in an application on that platform cannot be used by a dynamically linked library. |
DRAFT |
SDL_RWFromFP
Use this function to create SDL_RWops structures from a standard I/O file pointer.
Contents
Syntax
SDL_RWops* SDL_RWFromFP(FILE* fp,
SDL_bool autoclose)
Function Parameters
fp |
a file pointer used to fill an [[SDL_RWops]] structure ??? |
autoclose |
SDL_TRUE to autoclose or SDL_FALSE to leave the structure open ??? |
Return Value
*Returns a pointer to a new RWops structure, or NULL if it fails. *
Code Examples
You can add your code example here
Remarks
This is not available under Win32, since files opened in an application on that platform cannot be used by a dynamically linked library.
Related Functions
SDL_RWFromFile ???
SDL_RWFromMem ???
