diff options
Diffstat (limited to 'native_client_sdk/src/examples/index.html')
-rw-r--r-- | native_client_sdk/src/examples/index.html | 65 |
1 files changed, 35 insertions, 30 deletions
diff --git a/native_client_sdk/src/examples/index.html b/native_client_sdk/src/examples/index.html index 0ec82e0..0f20761 100644 --- a/native_client_sdk/src/examples/index.html +++ b/native_client_sdk/src/examples/index.html @@ -1,5 +1,5 @@ <!-- - Copyright (c) 2011 The Chromium Authors. All rights reserved. + Copyright (c) 2012 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> @@ -84,30 +84,32 @@ audio, 2D, 3D, input and urls.</p></dd> <p>Teaching focus: Audio.</p> </dd> <dt><a href="input_events/input_events.html">Input Events</a></dt> - <dd> The Input Events example demonstrates how to handle events triggered by the user. This example allows a user - to interact with a square representing a module instance. Events are displayed on the screen as the user clicks, scrolls, types, inside or outside - of the square. + <dd> The Input Events example demonstrates how to handle events triggered by + the user. This example allows a user to interact with a square representing a + module instance. Events are displayed on the screen as the user clicks, + scrolls, types, inside or outside of the square. <p>Teaching focus: Keyboard and mouse input, view change, and focus events.</p> </dd> <dt><a href="pi_generator/pi_generator.html">Pi Generator</a></dt> - <dd> The Pi Generator example demonstrates creating a helper thread that estimate pi using the Monte Carlo - method while randomly putting 1,000,000,000 points inside a 2D square that shares two - sides with a quarter circle. + <dd> The Pi Generator example demonstrates creating a helper thread that + estimate pi using the Monte Carlo method while randomly putting 1,000,000,000 + points inside a 2D square that shares two sides with a quarter circle. <p>Teaching focus: Thread creation, 2D graphics, view change events.</p> </dd> <dt><a href="tumbler/tumbler.html">Tumbler</a></dt> - <dd> The Tumbler example demonstrates how to create a 3D cube that you can rotate with your mouse while pressing the - left mouse button. This example creates a 3D context and draws to it using - OpenGL ES. The JavaScript implements a virtual trackball interface to - map mouse movements into 3D rotations using simple 3D vector math and - quaternions. + <dd> The Tumbler example demonstrates how to create a 3D cube that you can + rotate with your mouse while pressing the left mouse button. This example + creates a 3D context and draws to it using OpenGL ES. The JavaScript + implements a virtual trackball interface to map mouse movements into 3D + rotations using simple 3D vector math and quaternions. <p>Teaching focus: 3D graphics</p> </dd> <dt><a href="geturl/geturl.html">Get URL</a></dt> - <dd> The Get URL example demonstrates fetching an URL and then displaying its contents. + <dd> The Get URL example demonstrates fetching an URL and then displaying + its contents. <p>Teaching focus: URL loading.</p> </dd> @@ -116,29 +118,31 @@ audio, 2D, 3D, input and urls.</p></dd> <dd><p>The following set of examples illustrate various common concepts such as showing load progress, using Shared Objects (dynamic libraries), mulithreading...</p></dd> -<dt><a href="dlopen/dlopen.html">Shared Object Loading (GLIBC)</a></dt> - <dd> The Load Progress example demonstrates how to listen for and handle - events that occur while a NaCl module loads. This example listens for - different load event types and dispatches different events to their - respective handler. This example also checks for valid browser version and - shows how to calculate and display loading progress. +<dt><a href="dlopen/dlopen.html">Dynamic Library Open (GLIBC)</a></dt> + <dd> The dlopen example demonstrates how build dynamic libraries and then + open and use them at runtime. When the page loads, type in a question and + hit enter or click the ASK! button. The question and answer will be + displayed in the page under the text entry box. <p>Teaching focus: Using shared objects.</p> </dd> <dt><a href="load_progress/load_progress.html">Load Progress</a></dt> - <dd> The Load Progress example demonstrates how to listen for and handle events that occur while a - NaCl module loads. This example listens for different load event types and dispatches different events to their respective handler. This example also checks for valid browser - version and shows how to calculate and display loading progress. + <dd> The Load Progress example demonstrates how to listen for and handle + events that occur while a NaCl module loads. This example listens for + different load event types and dispatches different events to their + respective handler. This example also checks for valid browser version and + shows how to calculate and display loading progress. <p>Teaching focus: Progress event handling.</p> </dd> <dt><a href="pong/pong.html">Pong</a></dt> - <dd> The Pong example demonstrates how to create a basic 2D video game and how to store application - information in a local persistent file. This game uses up and - down arrow keyboard input events to move the paddle. + <dd> The Pong example demonstrates how to create a basic 2D video game and + how to store application information in a local persistent file. This game + uses up and down arrow keyboard input events to move the paddle. - <p>Teaching focus: File I/O, 2D graphics, input events.</p> + <p>Teaching focus: File I/O, 2D graphics, input events.</p> </dd> - <dt><a href="multithreaded_input_events/mt_input_events.html">Multi-threaded Input Events</a></dt> + <dt><a href="multithreaded_input_events/mt_input_events.html">Multi-threaded + Input Events</a></dt> <dd>The Multithreaded Input Events example combines HTML, Javascript, and C++ (the C++ is compiled to create a .nexe file). The C++ shows how to handle input events in a multi-threaded application. @@ -148,19 +152,20 @@ mulithreading...</p></dd> result of the worker thread to the browser. <p>Teaching focus: Multithreaded event handling.</p> </dd> - <dt><a href="fullscreen_tumbler/fullscreen_tumbler.html">Full-screen Tumbler</a></dt> + <dt><a href="fullscreen_tumbler/fullscreen_tumbler.html">Full-screen + Tumbler</a></dt> <dd>This is a modified version of the Tumbler example above that supports full-screen display. It is in every way identical to Tumbler in functionality, except that it adds the ability to switch to/from full-screen display by pressing the Enter key. - <p>Teaching focus: Full-screen</p> + <p>Teaching focus: Full-screen</p> </dd> <dt><a href="mouselock/mouselock.html">Mouse Locker</a></dt> <dd> The Mouselock example demonstrates how to use the MouseLock API to hide the mouse cursor. Mouse lock is only available in full-screen mode. You can lock and unlock the mouse while in full-screen mode by pressing the Enter key. - <p>Teaching focus: Mouse lock, Full-screen</p> + <p>Teaching focus: Mouse lock, Full-screen</p> </dd> <dt><a href="websocket/websocket.html">Websocket</a></dt> <dd> The Websocket example demonstrates how to use the Websocket API. The |