Browse Source

Platform: update HTML markup documentation.

pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
18a50f784b
  1. 10
      src/Platform/NaClApplication.h
  2. 3
      src/Platform/Sdl2Application.h

10
src/Platform/NaClApplication.h

@ -86,7 +86,7 @@ You need to provide HTML markup for your application. Template one is below,
you can modify it to your liking. The markup references two files, you can modify it to your liking. The markup references two files,
`NaClApplication.js` and `WebApplication.css`, both are in `Platform/` `NaClApplication.js` and `WebApplication.css`, both are in `Platform/`
directory in the source tree and are also installed into `share/magnum/` inside directory in the source tree and are also installed into `share/magnum/` inside
your NaCl toolchain. your NaCl toolchain. Change `<application>` to name of your executable.
@code @code
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
@ -98,7 +98,7 @@ your NaCl toolchain.
<body> <body>
<h1>Magnum NaCl Application</h1> <h1>Magnum NaCl Application</h1>
<div id="listener"> <div id="listener">
<embed id="module" type="application/x-nacl" src="application.nmf" /> <embed id="module" type="application/x-nacl" src="<application>.nmf" />
<div id="status">Initialization...</div> <div id="status">Initialization...</div>
<div id="statusDescription" /> <div id="statusDescription" />
<script src="NaClApplication.js"></script> <script src="NaClApplication.js"></script>
@ -115,12 +115,12 @@ The CSS file contains rudimentary style to avoid eye bleeding.
The `&lt;embed&gt;` file references NMF file which you need to provide too. If The `&lt;embed&gt;` file references NMF file which you need to provide too. If
you target @ref CORRADE_TARGET_NACL_NEWLIB "newlib", the file is pretty simple, you target @ref CORRADE_TARGET_NACL_NEWLIB "newlib", the file is pretty simple,
for example: for example (change `&lt;application&gt;` to name of your executable):
@code @code
{ {
"program": { "program": {
"x86-32": {"url": "application-x86-32.nexe"}, "x86-32": {"url": "<application>-x86-32.nexe"},
"x86-64": {"url": "application-x86-64.nexe"} "x86-64": {"url": "<application>-x86-64.nexe"}
} }
} }
@endcode @endcode

3
src/Platform/Sdl2Application.h

@ -88,6 +88,7 @@ provide HTML markup for your application. Template one is below, you can modify
it to your liking. The markup references two files, `EmscriptenApplication.js` it to your liking. The markup references two files, `EmscriptenApplication.js`
and `WebApplication.css`, both are in `Platform/` directory in the source tree and `WebApplication.css`, both are in `Platform/` directory in the source tree
and are also installed into `share/magnum/` inside your Emscripten toolchain. and are also installed into `share/magnum/` inside your Emscripten toolchain.
Change `&lt;application&gt;` to name of your executable.
@code @code
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
@ -103,7 +104,7 @@ and are also installed into `share/magnum/` inside your Emscripten toolchain.
<div id="status">Initialization...</div> <div id="status">Initialization...</div>
<div id="statusDescription" /> <div id="statusDescription" />
<script src="EmscriptenApplication.js"></script> <script src="EmscriptenApplication.js"></script>
<script async="async" src="application.js"></script> <script async="async" src="<application>.js"></script>
</div> </div>
</body> </body>
</html> </html>

Loading…
Cancel
Save