README-nacl.txt
changeset 8854 312c50aa67dd
parent 8852 bb99ec3b21d8
child 8873 77ffe680093f
equal deleted inserted replaced
8853:a25dcbe4fb02 8854:312c50aa67dd
    29 Also provided in test/nacl is the required support file, such as index.html, 
    29 Also provided in test/nacl is the required support file, such as index.html, 
    30 manifest.json, etc.
    30 manifest.json, etc.
    31 SDL apps for NaCl run on a worker thread using the ppapi_simple infrastructure.
    31 SDL apps for NaCl run on a worker thread using the ppapi_simple infrastructure.
    32 This allows for blocking calls on all the relevant systems (OpenGL ES, filesystem),
    32 This allows for blocking calls on all the relevant systems (OpenGL ES, filesystem),
    33 hiding the asynchronous nature of the browser behind the scenes...which is not the
    33 hiding the asynchronous nature of the browser behind the scenes...which is not the
    34 same as making it dissapear!
    34 same as making it disappear!
    35 
    35 
    36 
    36 
    37 ================================================================================
    37 ================================================================================
    38 Running tests
    38 Running tests
    39 ================================================================================
    39 ================================================================================
    55     
    55     
    56 Once the build finishes, you have to serve the contents with a web server (the
    56 Once the build finishes, you have to serve the contents with a web server (the
    57 script will give you instructions on how to do that with Python).
    57 script will give you instructions on how to do that with Python).
    58 
    58 
    59 ================================================================================
    59 ================================================================================
    60 RWOps and nacl_io
    60 RWops and nacl_io
    61 ================================================================================
    61 ================================================================================
    62 
    62 
    63 SDL_RWops work transparently with nacl_io. Two functions are provided to control
    63 SDL_RWops work transparently with nacl_io. Two functions are provided to control
    64 mount points:
    64 mount points:
    65     
    65     
    67                       const char* filesystemtype, 
    67                       const char* filesystemtype, 
    68                       unsigned long mountflags, const void *data);
    68                       unsigned long mountflags, const void *data);
    69     int SDL_NaClUmount(const char *target);
    69     int SDL_NaClUmount(const char *target);
    70     
    70     
    71     For convenience, SDL will by default mount an httpfs tree at / before calling 
    71     For convenience, SDL will by default mount an httpfs tree at / before calling 
    72 the app's main function. Such setting can be overriden by calling:
    72 the app's main function. Such setting can be overridden by calling:
    73     
    73     
    74     SDL_NaClUmount("/");
    74     SDL_NaClUmount("/");
    75 
    75 
    76 And then mounting a different filesystem at /
    76 And then mounting a different filesystem at /
    77 
    77